Status color fix on PlayerView

This commit is contained in:
Kingkor Roy Tirtho 2022-07-05 14:36:30 +06:00
parent da2e371dfd
commit 42257d9615
2 changed files with 17 additions and 18 deletions

View File

@ -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(

View File

@ -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,