mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-23 11:22:37 +02:00
fix: conditionally show cover header in artist skeleton and add showCoverHeader param to ArtistScreenSkeleton
This commit is contained in:
@@ -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