mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-07 15:59:42 +00:00
fix: failed download no error icon
This commit is contained in:
parent
73c012c71a
commit
1266a3f160
@ -89,21 +89,18 @@ class UserDownloads extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
horizontalTitleGap: 10,
|
horizontalTitleGap: 10,
|
||||||
trailing: SizedBox(
|
trailing: downloadManager.activeItem?.id == track.id &&
|
||||||
width: 30,
|
!hasFailed
|
||||||
height: 30,
|
? CircularProgressIndicator(
|
||||||
child: downloadManager.activeItem?.id == track.id
|
value: task.data?.progress ?? 0,
|
||||||
? CircularProgressIndicator(
|
)
|
||||||
value: task.data?.progress ?? 0,
|
: hasFailed
|
||||||
)
|
? Icon(SpotubeIcons.error, color: Colors.red[400])
|
||||||
: hasFailed
|
: IconButton(
|
||||||
? Icon(SpotubeIcons.error, color: Colors.red[400])
|
icon: const Icon(SpotubeIcons.close),
|
||||||
: IconButton(
|
onPressed: () {
|
||||||
icon: const Icon(SpotubeIcons.close),
|
downloadManager.cancel(track);
|
||||||
onPressed: () {
|
}),
|
||||||
downloadManager.cancel(track);
|
|
||||||
}),
|
|
||||||
),
|
|
||||||
subtitle: TypeConversionUtils.artists_X_ClickableArtists(
|
subtitle: TypeConversionUtils.artists_X_ClickableArtists(
|
||||||
track.artists ?? <Artist>[],
|
track.artists ?? <Artist>[],
|
||||||
mainAxisAlignment: WrapAlignment.start,
|
mainAxisAlignment: WrapAlignment.start,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user