setFullScreenOverlaysAndOrientations method

Future<void> setFullScreenOverlaysAndOrientations({
  1. dynamic hideOverLays = true,
})

hide the statusBar and the navigation bar, set only landscape mode only if forceLandScapeInFullscreen is true

Implementation

Future<void> setFullScreenOverlaysAndOrientations({
  hideOverLays = true,
}) async {
  forceLandScapeInFullscreen
      ? AutoOrientation.landscapeAutoMode(forceSensor: true)
      : AutoOrientation.fullAutoMode();

  if (hideOverLays) {
    setOverlays(false);
  }
  //AutoOrientation.landscapeAutoMode(forceSensor: true);
}