-
Notifications
You must be signed in to change notification settings - Fork 17
Add --rotate that gets passed to flutter-pi
#54
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
base: main
Are you sure you want to change the base?
Conversation
ardera
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, looks good! Just the FlutterPiToolConfig thing.
What would also be good is if you could specify a rotation when adding a device, since people are probably not rotating their Pi in new ways every time they're launching an app, but rather have a single fixed rotation they want to use for a device (Having the arg for the run command is still useful, since you might want to override)
| required this.fs, | ||
| required this.logger, | ||
| required this.platform, | ||
| required this.rotation, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry this isn't really clear in the code, but the FlutterPiToolConfig class basically represents the persistent configuration file of the flutterpi_tool, where the devices and their options are stored. I think the rotation might be better fit somewhere else
| final Logger logger; | ||
| final FlutterpiCache cache; | ||
| final MoreOperatingSystemUtils os; | ||
| final FlutterPiToolConfig config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above, maybe instead introduce a final int? rotation member instead, just like the explicitDevicePixelRatio and explicitDisplaySizeMillimeters.
|
@ardera Please add the rotation functionality. |
|
Any updates on this pr? |
Adds a new
-r--rotationargument toflutterpi_tool runthat mirrorsflutter-piCloses #44