Skip to content

Commit

Permalink
fix(album_card): show loading state during adding track to queue/play
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Nov 8, 2023
1 parent 1d77556 commit 5633367
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/components/album/album_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class AlbumCard extends HookConsumerWidget {
),
margin: EdgeInsets.symmetric(horizontal: marginH.toDouble()),
isPlaying: isPlaylistPlaying,
isLoading: isPlaylistPlaying && playlist.isFetching == true,
isLoading: (isPlaylistPlaying && playlist.isFetching == true) ||
updating.value,
title: album.name!,
description:
"${album.albumType?.formatted} • ${TypeConversionUtils.artists_X_String<ArtistSimple>(album.artists ?? [])}",
Expand Down Expand Up @@ -92,7 +93,7 @@ class AlbumCard extends HookConsumerWidget {
"album-tracks/${album.id}",
() {
return spotify.albums
.getTracks(album.id!)
.tracks(album.id!)
.all()
.then((value) => value.toList());
},
Expand Down

0 comments on commit 5633367

Please sign in to comment.