Athanax / fullscreen

MIT License
8 stars 13 forks source link

Does not return to Fullscreen after manually bringing back status bars on Android #6

Open tmaihoff opened 3 years ago

tmaihoff commented 3 years ago

How to reproduce:

  1. Use FullScreen.enterFullScreen(FullScreenMode.EMERSIVE); on Android, the app will switch to fullscreen mode.
  2. 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!