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