exitFullScreen method

  1. @override
void exitFullScreen(
  1. BuildContext context
)
override

Implementation

@override
void exitFullScreen(BuildContext context) async {
  await SystemChrome.setPreferredOrientations([
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);
  await SystemChrome.setEnabledSystemUIMode(
    SystemUiMode.manual,
    overlays: SystemUiOverlay.values,
  );
  _isFullScreen = false;
  Navigator.pop(context);
}