Use FullScreen.enterFullScreen(FullScreenMode.EMERSIVE); on Android, the app will switch to fullscreen mode.
Swipe from the top or bottom to bring back the status bars.
Expected behaviour: The status bars should disappear after some seconds.
Actual behaviour: The status bars remain visible.
Fix: Using SystemChrome.setEnabledSystemUIOverlays([]); also enters fullscreen but automatically hides bars after some seconds after bringing them back manually.
Flutter doctor
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1165], locale de-DE)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Community Edition (version 2021.2)
[√] VS Code (version 1.59.1)
[√] Connected device (4 available)
• No issues found!
How to reproduce:
FullScreen.enterFullScreen(FullScreenMode.EMERSIVE);
on Android, the app will switch to fullscreen mode.Expected behaviour: The status bars should disappear after some seconds. Actual behaviour: The status bars remain visible.
Fix: Using
SystemChrome.setEnabledSystemUIOverlays([]);
also enters fullscreen but automatically hides bars after some seconds after bringing them back manually.Flutter doctor
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1165], locale de-DE) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [√] Chrome - develop for the web [√] Android Studio (version 4.1.0) [√] IntelliJ IDEA Community Edition (version 2021.2) [√] VS Code (version 1.59.1) [√] Connected device (4 available) • No issues found!