📜  restrick 平台方向颤动 - 任何代码示例

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

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