|
9 | 9 | additional functionality it is fine to subclass or reimplement |
10 | 10 | FlutterApplication and put your custom class here. --> |
11 | 11 | <application |
12 | | - android:name="io.flutter.app.FlutterApplication" |
13 | 12 | android:label="flutter_weather" |
14 | | - android:icon="@mipmap/ic_launcher"> |
| 13 | + android:icon="@mipmap/ic_launcher" |
| 14 | + android:usesCleartextTraffic="true"> |
15 | 15 | <activity |
16 | 16 | android:name=".MainActivity" |
17 | 17 | android:launchMode="singleTop" |
18 | 18 | android:theme="@style/LaunchTheme" |
19 | 19 | android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" |
20 | 20 | android:hardwareAccelerated="true" |
21 | 21 | android:windowSoftInputMode="adjustResize"> |
22 | | - <!-- This keeps the window background of the activity showing |
23 | | - until Flutter renders its first frame. It can be removed if |
24 | | - there is no splash screen (such as the default splash screen |
25 | | - defined in @style/LaunchTheme). --> |
26 | | - <meta-data |
27 | | - android:name="io.flutter.app.android.SplashScreenUntilFirstFrame" |
28 | | - android:value="true" /> |
29 | 22 | <intent-filter> |
30 | 23 | <action android:name="android.intent.action.MAIN"/> |
31 | 24 | <category android:name="android.intent.category.LAUNCHER"/> |
32 | 25 | </intent-filter> |
| 26 | + |
| 27 | + <meta-data |
| 28 | + android:name="io.flutter.embedding.android.SplashScreenDrawable" |
| 29 | + android:resource="@drawable/launch_background" |
| 30 | + /> |
| 31 | + |
| 32 | + <meta-data |
| 33 | + android:name="io.flutter.embedding.android.NormalTheme" |
| 34 | + android:resource="@style/NormalTheme" |
| 35 | + /> |
33 | 36 | </activity> |
| 37 | + <meta-data |
| 38 | + android:name="flutterEmbedding" |
| 39 | + android:value="2" /> |
34 | 40 | </application> |
35 | 41 | </manifest> |
0 commit comments