-
-
Notifications
You must be signed in to change notification settings - Fork 172
Y Scale #208
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
Comments
The issue is that your screen has non-square pixels (the official pi screen has too). That's actually an open problem in flutter right now: flutter/flutter#71865 Theoretically I could add a "framebuffer size" argument to flutter-pi, so you can set some custom framebuffer size (that's a bit shorter/longer in the y direction) and then scale to framebuffer to fit the screen accordingly, but that's not optimal. text & edges generally will probably look blurry Best way to fix this is actually in the flutter app. See flutter/flutter#32115 (comment) for example. You can inject that widget into your app using the You can change this to only scale in the y direction, then it should work |
@ali77gh , First of all thanks for the invaluable code snipet. Can you help me out how, to fix this? Below is my pubspec.yamlname: test2_web environment: dev_dependencies: |
Hello @Arka2009.
I hope it helps🙂. |
Hi.
First of all thank you for making this project public, its really helping.
The problem is:
I have a 1280px x 720px display (ratio is 16x9).
but its 256mm x 163mm (ratio is 14x9).
So when i try to render a square it actually shows a rectangle (its taller then what it should be).
Then i tried to run program with -d switch:
flutter-pi -d "256, 163" ./fps_assets/
It actually not changing ratio and just effects on widget sizes, and i tried to randomly increase and decrease sizes and ratio is not changing.
The text was updated successfully, but these errors were encountered: