mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix(album_card): show loading state during adding track to queue/play
This commit is contained in:
parent
1d77556157
commit
5633367397
@ -51,7 +51,8 @@ class AlbumCard extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
margin: EdgeInsets.symmetric(horizontal: marginH.toDouble()),
|
margin: EdgeInsets.symmetric(horizontal: marginH.toDouble()),
|
||||||
isPlaying: isPlaylistPlaying,
|
isPlaying: isPlaylistPlaying,
|
||||||
isLoading: isPlaylistPlaying && playlist.isFetching == true,
|
isLoading: (isPlaylistPlaying && playlist.isFetching == true) ||
|
||||||
|
updating.value,
|
||||||
title: album.name!,
|
title: album.name!,
|
||||||
description:
|
description:
|
||||||
"${album.albumType?.formatted} • ${TypeConversionUtils.artists_X_String<ArtistSimple>(album.artists ?? [])}",
|
"${album.albumType?.formatted} • ${TypeConversionUtils.artists_X_String<ArtistSimple>(album.artists ?? [])}",
|
||||||
@ -92,7 +93,7 @@ class AlbumCard extends HookConsumerWidget {
|
|||||||
"album-tracks/${album.id}",
|
"album-tracks/${album.id}",
|
||||||
() {
|
() {
|
||||||
return spotify.albums
|
return spotify.albums
|
||||||
.getTracks(album.id!)
|
.tracks(album.id!)
|
||||||
.all()
|
.all()
|
||||||
.then((value) => value.toList());
|
.then((value) => value.toList());
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user