open method
您需要返回一个异步事件(通常是等待页面结束的异步事件) 请参考VideoController.customFullScreen的example
You need to return an asynchronous event (usually an asynchronous event waiting for the page to end) please refer to the example of VideoController.customFullScreen
Implementation
@override
Future<Object>? open(BuildContext context, VideoController controller) async {
// SystemChrome.setEnabledSystemUIOverlays([]);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
_setLandscape();
await Navigator.of(context).push(_route(controller));
// SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
_setPortrait();
return Null;
}