-
Notifications
You must be signed in to change notification settings - Fork 485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
横竖屏切换布局错乱 #566
Comments
@applebest Great idea, package used by many users including web and desktop that they are needing resize by width rather than orientation. You can use fontSizeResolver though ( |
Is it possible to add a parameter to the initialization method to control via a variable whether or not the design ratio needs to be refreshed based on orientation? |
There is no screen rotation on the web and desktop, so there is no problem using width adaptation. On mobile phones and tablets, the screen rotation will be chaotic. Can the frame adapt? grateful |
See Docs, fontSizeResolver parameter, in your case you can pass |
|
@applebest This is expected, you should use your own code then with Flutter's |
This is not a default for all developers, mobile developers also they want to calculate box width based on actual width of viewport whether landscape or portrait, so this custom feature will not be coded in this library. You should take a look at |
@applebest You can also use |
Some public widgets use a lot of |
#414 (comment)
使用这种方式,改动源码可以解决横竖屏切换的问题 ,横竖屏切换后要重置设计比例
The text was updated successfully, but these errors were encountered: