我在 flutter 的移动应用程序中将Chewie视频 Controller 用于视频播放器。单击视频链接时,我需要直接将视频作为横向打开。
最佳答案
@override
无效的initState(){
super.initState();
SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeRight,
DeviceOrientation.landscapeLeft,
]);}
关于flutter - 单击视频链接时如何直接以横向打开视频?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64023164/