Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
refactor(android): manually provide ui overlays for exitFullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Oct 19, 2021
1 parent 23a750e commit e75b5eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/plugins/helpers/screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ abstract class Screen {

static Future<void> exitFullscreen([final ScreenState? state]) async {
if (AppState.isMobile) {
await SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
await SystemChrome.setEnabledSystemUIMode(
SystemUiMode.manual,
overlays: SystemUiOverlay.values,
);
} else {
WindowManager.instance.setFullScreen(false);

Expand Down

0 comments on commit e75b5eb

Please sign in to comment.