setDefaultOverlaysAndOrientations method

Future<void> setDefaultOverlaysAndOrientations()

set the default orientations and overlays after exit of fullscreen

Implementation

Future<void> setDefaultOverlaysAndOrientations() async {
  await SystemChrome.setPreferredOrientations(orientations);
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
      overlays: overlays);
  // AutoOrientation.portraitAutoMode();
}