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