flutter 竖屏

458 阅读1分钟

SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]) 
.then((_) { 
    runApp(new MyApp()); 
});