AndroidManifest.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2. package="com.example.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. <uses-permission android:name="android.permission.INTERNET"/>
  9. <application
  10. android:name="io.flutter.app.FlutterApplication"
  11. android:label="demo"
  12. android:usesCleartextTraffic="true"
  13. android:icon="@mipmap/ic_launcher">
  14. <activity
  15. android:name=".MainActivity"
  16. android:launchMode="singleTop"
  17. android:theme="@style/LaunchTheme"
  18. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  19. android:hardwareAccelerated="true"
  20. android:windowSoftInputMode="adjustResize">
  21. <!-- Specifies an Android theme to apply to this Activity as soon as
  22. the Android process has started. This theme is visible to the user
  23. while the Flutter UI initializes. After that, this theme continues
  24. to determine the Window background behind the Flutter UI. -->
  25. <meta-data
  26. android:name="io.flutter.embedding.android.NormalTheme"
  27. android:resource="@style/NormalTheme"
  28. />
  29. <!-- Displays an Android View that continues showing the launch screen
  30. Drawable until Flutter paints its first frame, then this splash
  31. screen fades out. A splash screen is useful to avoid any visual
  32. gap between the end of Android's launch screen and the painting of
  33. Flutter's first frame. -->
  34. <meta-data
  35. android:name="io.flutter.embedding.android.SplashScreenDrawable"
  36. android:resource="@drawable/launch_background"
  37. />
  38. <intent-filter>
  39. <action android:name="android.intent.action.MAIN"/>
  40. <category android:name="android.intent.category.LAUNCHER"/>
  41. </intent-filter>
  42. </activity>
  43. <!-- Don't delete the meta-data below.
  44. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  45. <meta-data
  46. android:name="flutterEmbedding"
  47. android:value="2" />
  48. </application>
  49. </manifest>