Comments (4)
When I run my application the resolution from flutter is only 733x413pixel.
That's probably the resolution in logical pixels, if you multiply that with the device pixel ratio you should get the actual size in device pixels.
flutter-pi assumes, if no explicit --dimensions
argument is provided, that any connected DSI display is the Raspberry Pi 7 inch screen. I'll change that so that's only assumed if the resolution is also 800x480.
Though you said you tried with --dimensions
as well, does that still not work? I'm using --dimensions
pretty often and it works for me. Keep in mind the argument following it should be the physical dimensions of the screen in millimeters, e.g. for the pi 7 inch screen it would be: --dimensions 155,86
from flutter-pi.
Thank you @ardera! I had something wrong in the dimensions
setting, sorry for the inconvenience. I tried again with dimensions
and now it's working, in particular I will use:
flutter-pi -r 90 --dimensions 344,193 --release /home/pi/flutter_assets/
If possible, I think it would be much more useful to specify the resolution.
Additionally, I noticed that the Flutter application starts rotated 90° compared to the Raspberry Pi operating system. It's not a problem for me (I use the -r 90 option), but I just wanted to bring this to your attention.
Your work and your flutter-pi are greatly appreciated. Congratulations.
from flutter-pi.
@DonatelloX Interesting, what app is this? Does it have SystemChrome.setPreferredOrientations
anywhere?
from flutter-pi.
Yes, I used SystemChrome.setPreferredOrientations
but it has no effect.
from flutter-pi.
Related Issues (20)
- error message on TI AM625
- How can I show a python plot? (Question) HOT 2
- No issue, just looking for some help: Can't load Kernel binary: Invalid kernel binary format version. HOT 1
- No mouse cursor on Ubuntu HOT 1
- I updated the flutter version and reported the following error.(3.19.3) HOT 3
- modesetting.c: Could not set DRM client universal planes capable. drmSetClientCap: Operation not supported HOT 1
- Pi goes back to console mode but the app is running
- Option --dimensions does not take effect HOT 1
- 🐛 throwing DRM and GBM errors w/ latest kernel HOT 5
- Does webview work?
- screen ratio not respected. HOT 2
- MissingPluginException - method setSourceBytes (audioplayers) HOT 2
- error: static assignment failed: Expressionevaluation to false HOT 2
- No output on Odroid M1S when using Vu5S MIPI-DSI display HOT 14
- error: Couldn't create GBM surface for rendering - Rasberry pi 5 with 7 inch DSI official display HOT 6
- Missing Depens in Readme ? HOT 2
- Installing on iMX6ULL HOT 6
- Audioplayers MissingPluginException HOT 1
- Orange Pi Zero 3 configuration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-pi.