mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Make status bar transparent on android
This commit is contained in:
parent
62b28c67a0
commit
5fbed436c2
1 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,9 @@ void main() async {
|
|||
if (platform_k.isMobile) {
|
||||
// reset orientation override just in case, see #59
|
||||
unawaited(SystemChrome.setPreferredOrientations([]));
|
||||
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||
statusBarColor: Colors.transparent,
|
||||
));
|
||||
}
|
||||
BlocOverrides.runZoned(
|
||||
() => runApp(const MyApp()),
|
||||
|
|
Loading…
Reference in a new issue