ソースを参照

修改android文件-阻止转屏

daxu0403 7 年 前
コミット
98db6e9444

+ 1 - 0
android/app/src/main/AndroidManifest.xml

@@ -34,6 +34,7 @@
             android:theme="@style/LaunchTheme"
             android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density"
             android:hardwareAccelerated="true"
+            android:screenOrientation="portrait"
             android:windowSoftInputMode="adjustResize">
             <!-- This keeps the window background of the activity showing
                  until Flutter renders its first frame. It can be removed if

BIN
android/app/src/main/res/mipmap-hdpi/launch_image.png


BIN
android/app/src/main/res/mipmap-mdpi/launch_image.png


BIN
android/app/src/main/res/mipmap-xhdpi/launch_image.png


BIN
android/app/src/main/res/mipmap-xxhdpi/launch_image.png


BIN
android/app/src/main/res/mipmap-xxxhdpi/launch_image.png