fix: 小白条、导航栏沉浸
This commit is contained in:
@ -28,6 +28,13 @@ void main() async {
|
|||||||
await Request.setCookie();
|
await Request.setCookie();
|
||||||
await Data.init();
|
await Data.init();
|
||||||
await GStrorage.lazyInit();
|
await GStrorage.lazyInit();
|
||||||
|
// 小白条、导航栏沉浸
|
||||||
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
||||||
|
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||||
|
systemNavigationBarColor: Colors.transparent,
|
||||||
|
systemNavigationBarDividerColor: Colors.transparent,
|
||||||
|
statusBarColor: Colors.transparent,
|
||||||
|
));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user