|
1 | 1 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
2 | 2 | package="com.example.objectbox_demo"> |
3 | | - <!-- io.flutter.app.FlutterApplication is an android.app.Application that |
4 | | - calls FlutterMain.startInitialization(this); in its onCreate method. |
5 | | - In most cases you can leave this as-is, but you if you want to provide |
6 | | - additional functionality it is fine to subclass or reimplement |
7 | | - FlutterApplication and put your custom class here. --> |
8 | 3 | <application |
9 | | - android:name="io.flutter.app.FlutterApplication" |
10 | 4 | android:label="objectbox_demo" |
11 | 5 | android:icon="@mipmap/ic_launcher"> |
| 6 | + |
| 7 | + <meta-data |
| 8 | + android:name="flutterEmbedding" |
| 9 | + android:value="2" /> |
| 10 | + |
12 | 11 | <activity |
13 | 12 | android:name=".MainActivity" |
14 | 13 | android:launchMode="singleTop" |
15 | 14 | android:theme="@style/LaunchTheme" |
16 | 15 | android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" |
17 | 16 | android:hardwareAccelerated="true" |
18 | 17 | android:windowSoftInputMode="adjustResize"> |
19 | | - <!-- This keeps the window background of the activity showing |
20 | | - until Flutter renders its first frame. It can be removed if |
21 | | - there is no splash screen (such as the default splash screen |
22 | | - defined in @style/LaunchTheme). --> |
| 18 | + <!-- Specify that the launch screen should continue being displayed --> |
| 19 | + <!-- until Flutter renders its first frame. --> |
23 | 20 | <meta-data |
24 | | - android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" |
25 | | - android:value="true" /> |
| 21 | + android:name="io.flutter.embedding.android.SplashScreenDrawable" |
| 22 | + android:resource="@drawable/launch_background" /> |
| 23 | + |
| 24 | + <!-- Theme to apply as soon as Flutter begins rendering frames --> |
| 25 | + <meta-data |
| 26 | + android:name="io.flutter.embedding.android.NormalTheme" |
| 27 | + android:resource="@style/NormalTheme" /> |
26 | 28 | <intent-filter> |
27 | 29 | <action android:name="android.intent.action.MAIN"/> |
28 | 30 | <category android:name="android.intent.category.LAUNCHER"/> |
|
0 commit comments