📜  颤振块旋转 - Dart 代码示例

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

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