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, + )); }); }