From 50a46aa89d9c134811bccf87c358c67792f83719 Mon Sep 17 00:00:00 2001 From: orz12 Date: Fri, 5 Jan 2024 12:02:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9D=9E=E5=85=A8=E5=B1=8F=E9=80=8F?= =?UTF-8?q?=E6=98=8Eappbar=E6=97=A0=E5=9B=BE=E6=A0=87=E3=80=81=E6=A8=AA?= =?UTF-8?q?=E5=B1=8F=E8=A7=86=E9=A2=91=E7=AB=96=E5=B1=8F=E5=85=A8=E5=B1=8F?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E6=97=B6=E6=9C=89=E7=99=BD=E8=89=B2=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前修复图标不显示的思路不太对(appbar改成白底),现在改成了透明底但图标显色,更沉浸,顺便修复问题 --- lib/main.dart | 1 + lib/pages/video/detail/view.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 20a5b569..6778a4ac 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -37,6 +37,7 @@ void main() async { systemNavigationBarColor: Colors.transparent, systemNavigationBarDividerColor: Colors.transparent, statusBarColor: Colors.transparent, + statusBarIconBrightness: Brightness.dark, )); await Request.setCookie(); Data.init(); diff --git a/lib/pages/video/detail/view.dart b/lib/pages/video/detail/view.dart index f70da494..f050a9df 100644 --- a/lib/pages/video/detail/view.dart +++ b/lib/pages/video/detail/view.dart @@ -291,7 +291,7 @@ class _VideoDetailPageState extends State appBar: PreferredSize( preferredSize: const Size.fromHeight(0), child: AppBar( - backgroundColor: Theme.of(context).colorScheme.background, + backgroundColor: Colors.transparent, elevation: 0, ), ),