From 85591b534b2d9f3281fbc1b517a027eada89a4be Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 3 Jun 2024 00:49:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=8B=E5=8A=A8=E6=9A=97=E9=BB=91?= =?UTF-8?q?=E6=97=B6=E6=92=AD=E6=94=BE=E9=A1=B5=E5=9B=BE=E6=A0=87=E4=BA=AE?= =?UTF-8?q?=E5=BA=A6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/detail/view.dart | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index ee2ca470..e14f0bf9 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -474,9 +474,11 @@ class _VideoDetailPageState extends State elevation: 0, toolbarHeight: 0, systemOverlayStyle: SystemUiOverlayStyle( - statusBarIconBrightness: showStatusBarBackgroundColor - ? null - : Brightness.light, + statusBarIconBrightness: + Theme.of(context).brightness == Brightness.dark || + !showStatusBarBackgroundColor + ? Brightness.light + : Brightness.dark, systemNavigationBarColor: Colors.transparent), ), body: Column( @@ -1081,9 +1083,11 @@ class _VideoDetailPageState extends State elevation: 0, toolbarHeight: 0, systemOverlayStyle: SystemUiOverlayStyle( - statusBarIconBrightness: showStatusBarBackgroundColor - ? null - : Brightness.light, + statusBarIconBrightness: + Theme.of(context).brightness == Brightness.dark || + !showStatusBarBackgroundColor + ? Brightness.light + : Brightness.dark, systemNavigationBarColor: Colors.transparent), ), body: Container( @@ -1108,9 +1112,11 @@ class _VideoDetailPageState extends State elevation: 0, toolbarHeight: 0, systemOverlayStyle: SystemUiOverlayStyle( - statusBarIconBrightness: showStatusBarBackgroundColor - ? null - : Brightness.light, + statusBarIconBrightness: + Theme.of(context).brightness == Brightness.dark || + !showStatusBarBackgroundColor + ? Brightness.light + : Brightness.dark, systemNavigationBarColor: Colors.transparent), ), body: Container(