Set fixed screen orientation to 'portrait up'

This commit is contained in:
Elias Müller 2023-02-27 08:18:07 +01:00
parent f31f667fd9
commit 1dfebed83e
3 changed files with 301 additions and 299 deletions

File diff suppressed because it is too large Load Diff

@ -1,27 +1,27 @@
<component name="libraryTable"> <component name="libraryTable">
<library name="Flutter Plugins" type="FlutterPluginsLibraryType"> <library name="Flutter Plugins" type="FlutterPluginsLibraryType">
<CLASSES> <CLASSES>
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/flutter_native_splash-2.2.16" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.15" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.15" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/shared_preferences-2.0.18" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.3" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.24" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/path_provider-2.0.13" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.3" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.1.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences-2.0.18" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.9" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.4" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/sqflite-2.2.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.9" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/path_provider_foundation-2.1.2" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.1.4" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/path_provider_android-2.0.23" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher_ios-6.1.1" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.24" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider_foundation-2.1.2" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.1.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/url_launcher-6.1.10" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider_android-2.0.23" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/shared_preferences_web-2.0.5" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_android-2.0.16" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/open_file-2.1.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_foundation-2.1.4" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.1.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_web-2.0.5" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.4" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.1.4" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/flutter_native_splash-2.2.16" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider-2.0.13" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/url_launcher_ios-6.1.1" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.4" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/shared_preferences_android-2.0.16" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/sqflite-2.2.4+1" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.3" />
<root url="file://$USER_HOME$/.pub-cache/hosted/pub.dev/open_file-2.1.1" /> <root url="file:///opt/flutter/.pub-cache/hosted/pub.dev/url_launcher-6.1.10" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />

@ -63,6 +63,8 @@ class _MainState extends State<Main> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
return MaterialApp( return MaterialApp(
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,