From 9da113726b46d32afb07cd0e0943004854766708 Mon Sep 17 00:00:00 2001 From: guozhigq Date: Thu, 24 Aug 2023 09:25:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=8F=E7=99=BD=E6=9D=A1=E3=80=81?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F=E6=B2=89=E6=B5=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index ddf910dc..0bb42d79 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -28,6 +28,13 @@ void main() async { await Request.setCookie(); await Data.init(); await GStrorage.lazyInit(); + // 小白条、导航栏沉浸 + SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); + SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( + systemNavigationBarColor: Colors.transparent, + systemNavigationBarDividerColor: Colors.transparent, + statusBarColor: Colors.transparent, + )); }); }