appinioGmbH / flutter_packages

Dart and Flutter plugins/packages used and maintained by @appinioGmbH
187 stars 214 forks source link

How to set systemUiMode to Manual as it also need overlays value #10

Closed raj457036 closed 2 years ago

raj457036 commented 2 years ago

when we leave the fullscreen it should go back to the original system UI but currently, it is EdgeToEdge but I need manual

if we set

Screenshot 2022-04-19 at 2 05 52 PM

I got this error as it needs overlays value.

E[/flutter]() (22400): [ERROR:flutter[/lib/ui/ui_dart_state.cc]()(209)] Unhandled Exception: 'package:flutter[/src/services/system_chrome.dart]()': Failed assertion: line 472 pos 14: 'mode == SystemUiMode.manual && overlays != null': is not true.

And really thanks for this amazing package! it solved soo many work hours.

tobiasbentin commented 2 years ago

Nice that you came across this and thanks for sharing it here! The upcoming update will have a parameter called systemUIOverlaysAfterFullscreen where you can define those overlays to prevent the fullscreen to throw that exception. Glad to hear that 😊