fix: 小白条、导航栏沉浸

This commit is contained in:
guozhigq
2023-08-24 09:25:32 +08:00
parent 201422c150
commit 9da113726b

View File

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