增加一个是否开启适配的开关
q200892907 opened this issue · comments
q200892907 commented
可能得场景是平台适配上,在移动端想开启适配,可是在桌面端不想开启适配,但很多代码已使用.w/.h/.sp的操作,用于一步开关
Mounir Bouaiche commented
Try to set designSize to MediaQuery.of(context).size in Desktop platform
Flutter screen adaptation, font adaptation, get screen information
q200892907 opened this issue · comments
可能得场景是平台适配上,在移动端想开启适配,可是在桌面端不想开启适配,但很多代码已使用.w/.h/.sp的操作,用于一步开关
Try to set designSize to MediaQuery.of(context).size in Desktop platform