diff --git a/lib/view/video.dart b/lib/view/video.dart index a6f5209..cde87c0 100644 --- a/lib/view/video.dart +++ b/lib/view/video.dart @@ -28,7 +28,7 @@ class _CustomVideoPlayerState extends State { void initState() { super.initState(); WidgetsFlutterBinding.ensureInitialized(); - SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.bottom]); + SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky, overlays: [SystemUiOverlay.bottom]); SystemChrome.setPreferredOrientations( [DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]); Wakelock.enable(); @@ -178,7 +178,7 @@ class _CustomVideoPlayerState extends State { @override void dispose() { Wakelock.disable(); - SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.top]); + SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky, overlays: [SystemUiOverlay.top]); SystemChrome.setPreferredOrientations([]); player?.stop().then((value) => player?.dispose()); _controller?.dispose();