mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05: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(
|
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 {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
@ -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 {
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)),
|
));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user