mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
Status color fix on PlayerView
This commit is contained in:
parent
da2e371dfd
commit
42257d9615
@ -54,9 +54,7 @@ class PlayerView extends HookConsumerWidget {
|
|||||||
noSetBGColor: true,
|
noSetBGColor: true,
|
||||||
);
|
);
|
||||||
|
|
||||||
return SafeArea(
|
return Scaffold(
|
||||||
child: Scaffold(
|
|
||||||
// backgroundColor: paletteColor.color,
|
|
||||||
body: Container(
|
body: Container(
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
@ -71,6 +69,7 @@ class PlayerView extends HookConsumerWidget {
|
|||||||
filter: ImageFilter.blur(sigmaX: 15, sigmaY: 15),
|
filter: ImageFilter.blur(sigmaX: 15, sigmaY: 15),
|
||||||
child: Container(
|
child: Container(
|
||||||
color: paletteColor.color.withOpacity(.5),
|
color: paletteColor.color.withOpacity(.5),
|
||||||
|
child: SafeArea(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
PageWindowTitleBar(
|
PageWindowTitleBar(
|
||||||
|
@ -11,8 +11,7 @@ void useCustomStatusBarColor(
|
|||||||
final backgroundColor = Theme.of(context).backgroundColor;
|
final backgroundColor = Theme.of(context).backgroundColor;
|
||||||
resetStatusbar() => SystemChrome.setSystemUIOverlayStyle(
|
resetStatusbar() => SystemChrome.setSystemUIOverlayStyle(
|
||||||
SystemUiOverlayStyle(
|
SystemUiOverlayStyle(
|
||||||
statusBarColor:
|
statusBarColor: backgroundColor, // status bar color
|
||||||
!noSetBGColor ? backgroundColor : null, // status bar color
|
|
||||||
statusBarIconBrightness: backgroundColor.computeLuminance() > 0.179
|
statusBarIconBrightness: backgroundColor.computeLuminance() > 0.179
|
||||||
? Brightness.dark
|
? Brightness.dark
|
||||||
: Brightness.light,
|
: Brightness.light,
|
||||||
@ -25,7 +24,8 @@ void useCustomStatusBarColor(
|
|||||||
if (isCurrentRoute && statusBarColor != color) {
|
if (isCurrentRoute && statusBarColor != color) {
|
||||||
SystemChrome.setSystemUIOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(
|
||||||
SystemUiOverlayStyle(
|
SystemUiOverlayStyle(
|
||||||
statusBarColor: color, // status bar color
|
statusBarColor:
|
||||||
|
noSetBGColor ? Colors.transparent : color, // status bar color
|
||||||
statusBarIconBrightness: color.computeLuminance() > 0.179
|
statusBarIconBrightness: color.computeLuminance() > 0.179
|
||||||
? Brightness.dark
|
? Brightness.dark
|
||||||
: Brightness.light,
|
: Brightness.light,
|
||||||
|
Loading…
Reference in New Issue
Block a user