标签 flutter 下的文章

Flutter 强制横屏竖屏

void main() { WidgetsFlutterBinding.ensureInitialized(); // 强制横屏 SystemChrome.setPreferredOrientations( [DeviceOrientation.landscapeLeft, D...