Merge branch 'completed-topics-fix' into 'master'
fix: add nullable thumbnail completed topics in model and progress card See merge request profile-image/kedaireka/polinema-adapative-learning/mobile-adaptive-learning!17
This commit is contained in:
commit
777539418b
|
|
@ -2,7 +2,7 @@ class CompletedTopic {
|
|||
final String idSection;
|
||||
final String nameSection;
|
||||
final String descriptionSection;
|
||||
final String thumbnail;
|
||||
final String? thumbnail;
|
||||
final int totalTopics;
|
||||
final int completedTopics;
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ class CompletedTopic {
|
|||
required this.idSection,
|
||||
required this.nameSection,
|
||||
required this.descriptionSection,
|
||||
required this.thumbnail,
|
||||
this.thumbnail,
|
||||
required this.totalTopics,
|
||||
required this.completedTopics,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class ProgressCard extends StatelessWidget {
|
|||
ClipRRect(
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Image.network(
|
||||
_getFullImageUrl(topic.thumbnail),
|
||||
_getFullImageUrl(topic.thumbnail ?? ''),
|
||||
width: 90,
|
||||
height: 130,
|
||||
fit: BoxFit.cover,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user