📜  将锁定屏幕颤动为纵向模式 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:02.133000             🧑  作者: Mango

代码示例2
@override
dispose(){
  SystemChrome.setPreferredOrientations([
    DeviceOrientation.landscapeRight,
    DeviceOrientation.landscapeLeft,
    DeviceOrientation.portraitUp,
    DeviceOrientation.portraitDown,
  ]);
  super.dispose();
}