You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks, first of all, thank you very much for this engine. It's amazing work.
I'm trying tu use this engine, but in portrait mode, then I do the change in the flutter code, but the pixel ratio of the display dont change, causing some mistakes in the view. The pixel ratio keeps in 1.00 even though I do changed it on rpi config.
I guess you can help me with this little thing. Thanks
Hi folks, first of all, thank you very much for this engine. It's amazing work.
Thanks!
but the pixel ratio of the display dont change, causing some mistakes in the view. The pixel ratio keeps in 1.00 even though I do changed it on rpi config.
I'm afraid I don't understand what you mean. Why should flutter's device pixel ratio change on rotation? The device pixel ratio is calculated using the resolution of your display and the physical size of your display, it's not affected by rotation. It's just a measure of how "dense" the pixels of your display are, pretty much similiar to dpi.
There's also no way to change the pixel ratio in raspi-config. You can change the resolution in raspi-config, but I don't recommend doing that because the way raspi-config does it is really hacky and may result in some "glitchy" behaviour. The correct way to change your resolution is to supply a custom EDID file for your display, see here
The pixel ratio keeps in 1.00 even though I do changed it on rpi config.
If you calculate the pixel ratio for your display according to this documentation, it's 0.657. But I read somewhere that flutter can't handle device pixel ratios below 1 properly, so flutter-pi rounds up all pixel ratios below 1. That's why your pixel ratio is 1.00.
Though, I never actually tested whether flutter can handle pixel ratios below 1 myself. I'll do that now
Hi folks, first of all, thank you very much for this engine. It's amazing work.
I'm trying tu use this engine, but in portrait mode, then I do the change in the flutter code, but the pixel ratio of the display dont change, causing some mistakes in the view. The pixel ratio keeps in 1.00 even though I do changed it on rpi config.
I guess you can help me with this little thing. Thanks
The text was updated successfully, but these errors were encountered: