diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index a57003572..1120b07cb 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -45,6 +45,7 @@ android:taskAffinity="" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" + android:screenOrientation="portrait" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> diff --git a/lib/main.dart b/lib/main.dart index 1a9019832..9bd4164b1 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -134,6 +134,10 @@ class _MusifyState extends State { systemNavigationBarColor: Colors.transparent, ), ); + SystemChrome.setPreferredOrientations([ + DeviceOrientation.portraitUp, + DeviceOrientation.portraitDown, + ]); }); try {