mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
fix: track collection view status bar not transparent
This commit is contained in:
parent
c93c229b0f
commit
9251121ba0
@ -71,9 +71,11 @@ class TrackCollectionHeading<T> extends HookConsumerWidget {
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 20,
|
||||
),
|
||||
child: SafeArea(
|
||||
child: Flex(
|
||||
direction:
|
||||
constrains.mdAndDown ? Axis.vertical : Axis.horizontal,
|
||||
direction: constrains.mdAndDown
|
||||
? Axis.vertical
|
||||
: Axis.horizontal,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
ConstrainedBox(
|
||||
@ -149,8 +151,8 @@ class TrackCollectionHeading<T> extends HookConsumerWidget {
|
||||
),
|
||||
label: Text(context.l10n.shuffle),
|
||||
icon: const Icon(SpotubeIcons.shuffle),
|
||||
onPressed:
|
||||
tracksSnapshot.data == null || isPlaying
|
||||
onPressed: tracksSnapshot.data == null ||
|
||||
isPlaying
|
||||
? null
|
||||
: onShuffledPlay,
|
||||
),
|
||||
@ -188,6 +190,7 @@ class TrackCollectionHeading<T> extends HookConsumerWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
@ -106,9 +106,7 @@ class TrackCollectionView<T> extends HookConsumerWidget {
|
||||
return () => controller.removeListener(listener);
|
||||
}, [collapsed.value]);
|
||||
|
||||
return SafeArea(
|
||||
bottom: false,
|
||||
child: Scaffold(
|
||||
return Scaffold(
|
||||
appBar: kIsDesktop
|
||||
? const PageWindowTitleBar(
|
||||
backgroundColor: Colors.transparent,
|
||||
@ -238,7 +236,6 @@ class TrackCollectionView<T> extends HookConsumerWidget {
|
||||
)
|
||||
],
|
||||
),
|
||||
)),
|
||||
);
|
||||
));
|
||||
}
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ Future<void> main(List<String> rawArgs) async {
|
||||
runApp(
|
||||
DevicePreview(
|
||||
availableLocales: L10n.all,
|
||||
enabled: !kReleaseMode,
|
||||
enabled: !kReleaseMode && DesktopTools.platform.isDesktop,
|
||||
builder: (context) {
|
||||
return ProviderScope(
|
||||
child: QueryClientProvider(
|
||||
|
Loading…
Reference in New Issue
Block a user