Giter Club home page Giter Club logo

Comments (4)

ardera avatar ardera commented on August 16, 2024

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.

DonatelloX avatar DonatelloX commented on August 16, 2024

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.

ardera avatar ardera commented on August 16, 2024

@DonatelloX Interesting, what app is this? Does it have SystemChrome.setPreferredOrientations anywhere?

from flutter-pi.

DonatelloX avatar DonatelloX commented on August 16, 2024

Yes, I used SystemChrome.setPreferredOrientations but it has no effect.

from flutter-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.