1. Add the following between activities in the configuration file:

<activity android:name=".MainActivity" android:launchMode="singleTop" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScal e|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <! - remove the start page hang - > < meta - data android: name = "IO. Flutter. App. Android. SplashScreenUntilFirstFrame" android: value = "true" / > <! - remove the start page black screen - > < meta - data android: name = "IO. Flutter. Embedding. Android. SplashScreenDrawable" android:resource="@drawable/launch_background" /> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity>Copy the code

Launch_background. XML under drawable: launch_background. XML

<? The XML version = "1.0" encoding = "utf-8"? > <! -- Modify this file to customize your launch splash screen --> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@android:color/white" /> <! -- You can insert your own image assets here --> <! Android :gravity="center" Android: SRC ="@drawable/splash" /> </item> </layer-list>Copy the code