📜  如何在颤动中停止屏幕旋转 - Dart 代码示例

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

代码示例1
class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      SystemChrome.setPreferredOrientations([
        DeviceOrientation.portraitUp,
        DeviceOrientation.portraitDown,
      ]);
      return new MaterialApp(...);
    }
  }