OpenFlutter / flutter_screenutil

Flutter screen adaptation, font adaptation, get screen information
https://pub.dartlang.org/packages/flutter_screenutil
Apache License 2.0
3.88k stars 494 forks source link

how to trigger when orientation changed? #347

Closed fkbeys closed 2 years ago

fkbeys commented 2 years ago

after changing the orientation, the sw and sh values are changing according to new height and widht. it s ok But it doesnt rebuild the UI even i automatically or manually set state. how can i solve this?

lizhuoyuan commented 2 years ago

Orientation changes are generally when the device is rotated, UI refresh is not triggered, please check if there is a const modification

fkbeys commented 2 years ago

Orientation changes are generally when the device is rotated, UI refresh is not triggered, please check if there is a const modification there is no const modification.

lizhuoyuan commented 2 years ago

try master plz