systemScreenOrientationAuto function
orientations 为空时跟随系统屏幕方向。 组件:OrientationBuilder 或 MediaQuery.of(context).orientation 可获取屏幕方向
Implementation
Future<void> systemScreenOrientationAuto() {
return SystemChrome.setPreferredOrientations([]);
}
orientations 为空时跟随系统屏幕方向。 组件:OrientationBuilder 或 MediaQuery.of(context).orientation 可获取屏幕方向
Future<void> systemScreenOrientationAuto() {
return SystemChrome.setPreferredOrientations([]);
}