mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-10 18:04:06 +02:00
fix: conditionally show cover header in artist skeleton and add showCoverHeader param to ArtistScreenSkeleton
This commit is contained in:
1 parent
8979210804
commit
0b20cb895e
2 files changed
+18
-6
No files matched your search
@@ -492,7 +492,15 @@ class _ArtistScreenState extends ConsumerState<ArtistScreen> {
|
||||
hasDiscography: hasDiscography,
|
||||
),
|
||||
if (_isLoadingDiscography)
|
||||
const SliverToBoxAdapter(child: ArtistScreenSkeleton()),
|
||||
SliverToBoxAdapter(
|
||||
child: ArtistScreenSkeleton(
|
||||
showCoverHeader:
|
||||
(_headerImageUrl ??
|
||||
widget.headerImageUrl ??
|
||||
widget.coverUrl) ==
|
||||
null,
|
||||
),
|
||||
),
|
||||
if (_error != null)
|
||||
SliverToBoxAdapter(
|
||||
child: Padding(
|
||||
|
||||
Reference in new issue
Block a user