fix: track collection view status bar not transparent

This commit is contained in:
Kingkor Roy Tirtho 2023-06-20 10:25:57 +06:00
parent c93c229b0f
commit 9251121ba0
3 changed files with 227 additions and 227 deletions

View File

@ -71,9 +71,11 @@ class TrackCollectionHeading<T> extends HookConsumerWidget {
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 20, horizontal: 20,
), ),
child: SafeArea(
child: Flex( child: Flex(
direction: direction: constrains.mdAndDown
constrains.mdAndDown ? Axis.vertical : Axis.horizontal, ? Axis.vertical
: Axis.horizontal,
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
ConstrainedBox( ConstrainedBox(
@ -149,8 +151,8 @@ class TrackCollectionHeading<T> extends HookConsumerWidget {
), ),
label: Text(context.l10n.shuffle), label: Text(context.l10n.shuffle),
icon: const Icon(SpotubeIcons.shuffle), icon: const Icon(SpotubeIcons.shuffle),
onPressed: onPressed: tracksSnapshot.data == null ||
tracksSnapshot.data == null || isPlaying isPlaying
? null ? null
: onShuffledPlay, : onShuffledPlay,
), ),
@ -188,6 +190,7 @@ class TrackCollectionHeading<T> extends HookConsumerWidget {
), ),
), ),
), ),
),
); );
}, },
); );

View File

@ -106,9 +106,7 @@ class TrackCollectionView<T> extends HookConsumerWidget {
return () => controller.removeListener(listener); return () => controller.removeListener(listener);
}, [collapsed.value]); }, [collapsed.value]);
return SafeArea( return Scaffold(
bottom: false,
child: Scaffold(
appBar: kIsDesktop appBar: kIsDesktop
? const PageWindowTitleBar( ? const PageWindowTitleBar(
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
@ -238,7 +236,6 @@ class TrackCollectionView<T> extends HookConsumerWidget {
) )
], ],
), ),
)), ));
);
} }
} }

View File

@ -132,7 +132,7 @@ Future<void> main(List<String> rawArgs) async {
runApp( runApp(
DevicePreview( DevicePreview(
availableLocales: L10n.all, availableLocales: L10n.all,
enabled: !kReleaseMode, enabled: !kReleaseMode && DesktopTools.platform.isDesktop,
builder: (context) { builder: (context) {
return ProviderScope( return ProviderScope(
child: QueryClientProvider( child: QueryClientProvider(