fix: add nullable thumbnail completed topics in model and progress card
This commit is contained in:
parent
88ceaf7163
commit
43d66bd652
|
|
@ -2,7 +2,7 @@ class CompletedTopic {
|
||||||
final String idSection;
|
final String idSection;
|
||||||
final String nameSection;
|
final String nameSection;
|
||||||
final String descriptionSection;
|
final String descriptionSection;
|
||||||
final String thumbnail;
|
final String? thumbnail;
|
||||||
final int totalTopics;
|
final int totalTopics;
|
||||||
final int completedTopics;
|
final int completedTopics;
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ class CompletedTopic {
|
||||||
required this.idSection,
|
required this.idSection,
|
||||||
required this.nameSection,
|
required this.nameSection,
|
||||||
required this.descriptionSection,
|
required this.descriptionSection,
|
||||||
required this.thumbnail,
|
this.thumbnail,
|
||||||
required this.totalTopics,
|
required this.totalTopics,
|
||||||
required this.completedTopics,
|
required this.completedTopics,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ class ProgressCard extends StatelessWidget {
|
||||||
ClipRRect(
|
ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(8),
|
borderRadius: BorderRadius.circular(8),
|
||||||
child: Image.network(
|
child: Image.network(
|
||||||
_getFullImageUrl(topic.thumbnail),
|
_getFullImageUrl(topic.thumbnail ?? ''),
|
||||||
width: 90,
|
width: 90,
|
||||||
height: 130,
|
height: 130,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user