mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-14 11:18:54 +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) {
|
if (platform_k.isMobile) {
|
||||||
// reset orientation override just in case, see #59
|
// reset orientation override just in case, see #59
|
||||||
unawaited(SystemChrome.setPreferredOrientations([]));
|
unawaited(SystemChrome.setPreferredOrientations([]));
|
||||||
|
SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
|
||||||
|
statusBarColor: Colors.transparent,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
BlocOverrides.runZoned(
|
BlocOverrides.runZoned(
|
||||||
() => runApp(const MyApp()),
|
() => runApp(const MyApp()),
|
||||||
|
|
Loading…
Reference in a new issue