-
Notifications
You must be signed in to change notification settings - Fork 506
Closed
Labels
Description
我在做一个app在pad上运行的
然后app本身是竖屏使用 个别页面需要切换到横屏
SystemChrome.setEnabledSystemUIOverlays([]);
SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]);
我会在init的时候用代码将它变成横屏 然后我之前在入口文件加了ScreenUtilInit designSize: Size(1200, 1920),
之后我在变成横屏的页面也加了ScreenUtilInit 不过 designSize设置为了 Size(1920, 1200)
因为不设置的话貌似有兼容问题 但是设置了之后貌似跳转到页面时会有卡顿
插件使用的是最新版的 请问这种场景一般需要怎么做