Skip to content
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

Set rotations properly for landscape default devices #80

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

JSUYA
Copy link
Member

@JSUYA JSUYA commented Feb 13, 2025

+) #19

+)Set only landscape as default for TV profile.

For webapps on TV devices, the default orientation setting is landscape only. This keep the output screen to be display to landscape even if the physical device is portrait mode.
To behave according to the device's orientation(like "all" as webapp, the user can call SystemChrome.setPreferredOrientations() from the app to set it.

SystemChrome.setPreferredOrientations([
      DeviceOrientation.portraitDown,
      DeviceOrientation.portraitUp,
      DeviceOrientation.landscapeLeft,
      DeviceOrientation.landscapeRight,
    ]);

@JSUYA JSUYA merged commit 3b5d236 into flutter-tizen:master Feb 18, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants