fix(player): gradient bg not taking full height

This commit is contained in:
Kingkor Roy Tirtho 2023-04-15 10:08:39 +06:00
parent da26c9a677
commit 62ad86e88d

View File

@ -76,7 +76,9 @@ class PlayerView extends HookConsumerWidget {
leading: const BackButton(), leading: const BackButton(),
), ),
extendBodyBehindAppBar: true, extendBodyBehindAppBar: true,
body: AnimateGradient( body: SizedBox(
height: double.infinity,
child: AnimateGradient(
animateAlignments: true, animateAlignments: true,
primaryBegin: Alignment.topLeft, primaryBegin: Alignment.topLeft,
primaryEnd: Alignment.bottomLeft, primaryEnd: Alignment.bottomLeft,
@ -149,7 +151,8 @@ class PlayerView extends HookConsumerWidget {
), ),
if (isLocalTrack) if (isLocalTrack)
Text( Text(
TypeConversionUtils.artists_X_String<Artist>( TypeConversionUtils.artists_X_String<
Artist>(
currentTrack?.artists ?? [], currentTrack?.artists ?? [],
), ),
style: theme.textTheme.bodyMedium!.copyWith( style: theme.textTheme.bodyMedium!.copyWith(
@ -158,7 +161,8 @@ class PlayerView extends HookConsumerWidget {
), ),
) )
else else
TypeConversionUtils.artists_X_ClickableArtists( TypeConversionUtils
.artists_X_ClickableArtists(
currentTrack?.artists ?? [], currentTrack?.artists ?? [],
textStyle: textStyle:
theme.textTheme.bodyMedium!.copyWith( theme.textTheme.bodyMedium!.copyWith(
@ -220,6 +224,7 @@ class PlayerView extends HookConsumerWidget {
), ),
), ),
), ),
),
); );
} }
} }