📜  页面的颤动锁定方向 - Dart 代码示例

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

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