Skip to content

Commit 42d0178

Browse files
committed
returned tracks images
1 parent 79b0d5f commit 42d0178

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/features/presentation/download_tracks_collection/widgets/tracks_type_depend_widgets/track_collection_type_depend_track_tile.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,16 @@ class _TracksCollectionTypeDependTrackTileState extends State<TracksCollectionTy
6565
return Container();
6666
}
6767

68-
return Image.asset(
69-
"resources/images/another/thanks.png",
68+
return CachedNetworkImage(
7069
width: 50,
7170
height: 50,
7271
fit: BoxFit.fitWidth,
72+
memCacheHeight: (50 * MediaQuery.of(context).devicePixelRatio).round(),
73+
imageUrl: widget.trackWithLoadingObserver.track.album?.imageUrl ?? '',
74+
placeholder: (context, imageUrl) =>
75+
Image.asset('resources/images/another/loading_track_collection_image.png'),
76+
errorWidget: (context, imageUrl, _) =>
77+
Image.asset('resources/images/another/loading_track_collection_image.png'),
7378
);
7479
}),
7580
Expanded(

0 commit comments

Comments
 (0)