flutter_native_splash.yaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. flutter_native_splash:
  2. # This package generates native code to customize Flutter's default white native splash screen
  3. # with background color and splash image.
  4. # Customize the parameters below, and run the following command in the terminal:
  5. # flutter pub run flutter_native_splash:create
  6. # To restore Flutter's default white splash screen, run the following command in the terminal:
  7. # flutter pub run flutter_native_splash:remove
  8. # color or background_image is the only required parameter. Use color to set the background
  9. # of your splash screen to a solid color. Use background_image to set the background of your
  10. # splash screen to a png image. This is useful for gradients. The image will be stretch to the
  11. # size of the app. Only one parameter can be used, color and background_image cannot both be set.
  12. color: "#f4f2e9"
  13. #background_image: "assets/background.png"
  14. # Optional parameters are listed below. To enable a parameter, uncomment the line by removing
  15. # the leading # character.
  16. # The image parameter allows you to specify an image used in the splash screen. It must be a
  17. # png file and should be sized for 4x pixel density.
  18. image: assets/icons/logo.png
  19. # The branding property allows you to specify an image used as branding in the splash screen.
  20. # It must be a png file. It is supported for Android, iOS and the Web. For Android 12,
  21. # see the Android 12 section below.
  22. #branding: assets/dart.png
  23. # To position the branding image at the bottom of the screen you can use bottom, bottomRight,
  24. # and bottomLeft. The default values is bottom if not specified or specified something else.
  25. #branding_mode: bottom
  26. # The color_dark, background_image_dark, image_dark, branding_dark are parameters that set the background
  27. # and image when the device is in dark mode. If they are not specified, the app will use the
  28. # parameters from above. If the image_dark parameter is specified, color_dark or
  29. # background_image_dark must be specified. color_dark and background_image_dark cannot both be
  30. # set.
  31. #color_dark: "#042a49"
  32. #background_image_dark: "assets/dark-background.png"
  33. #image_dark: assets/splash-invert.png
  34. #branding_dark: assets/dart_dark.png
  35. # Android 12 handles the splash screen differently than previous versions. Please visit
  36. # https://developer.android.com/guide/topics/ui/splash-screen
  37. # Following are Android 12 specific parameter.
  38. android_12:
  39. # The image parameter sets the splash screen icon image. If this parameter is not specified,
  40. # the app's launcher icon will be used instead.
  41. # Please note that the splash screen will be clipped to a circle on the center of the screen.
  42. # App icon with an icon background: This should be 960×960 pixels, and fit within a circle
  43. # 640 pixels in diameter.
  44. # App icon without an icon background: This should be 1152×1152 pixels, and fit within a circle
  45. # 768 pixels in diameter.
  46. image: assets/icons/logo.png
  47. # Splash screen background color.
  48. color: "#f4f2e9"
  49. # App icon background color.
  50. #icon_background_color: "#111111"
  51. # The branding property allows you to specify an image used as branding in the splash screen.
  52. #branding: assets/dart.png
  53. # The image_dark, color_dark, icon_background_color_dark, and branding_dark set values that
  54. # apply when the device is in dark mode. If they are not specified, the app will use the
  55. # parameters from above.
  56. #image_dark: assets/android12splash-invert.png
  57. #color_dark: "#042a49"
  58. #icon_background_color_dark: "#eeeeee"
  59. # The android, ios and web parameters can be used to disable generating a splash screen on a given
  60. # platform.
  61. #android: false
  62. #ios: false
  63. #web: false
  64. # Platform specific images can be specified with the following parameters, which will override
  65. # the respective parameter. You may specify all, selected, or none of these parameters:
  66. #color_android: "#42a5f5"
  67. #color_dark_android: "#042a49"
  68. #color_ios: "#42a5f5"
  69. #color_dark_ios: "#042a49"
  70. #color_web: "#42a5f5"
  71. #color_dark_web: "#042a49"
  72. #image_android: assets/splash-android.png
  73. #image_dark_android: assets/splash-invert-android.png
  74. #image_ios: assets/splash-ios.png
  75. #image_dark_ios: assets/splash-invert-ios.png
  76. #image_web: assets/splash-web.png
  77. #image_dark_web: assets/splash-invert-web.png
  78. #background_image_android: "assets/background-android.png"
  79. #background_image_dark_android: "assets/dark-background-android.png"
  80. #background_image_ios: "assets/background-ios.png"
  81. #background_image_dark_ios: "assets/dark-background-ios.png"
  82. #background_image_web: "assets/background-web.png"
  83. #background_image_dark_web: "assets/dark-background-web.png"
  84. #branding_android: assets/brand-android.png
  85. #branding_dark_android: assets/dart_dark-android.png
  86. #branding_ios: assets/brand-ios.png
  87. #branding_dark_ios: assets/dart_dark-ios.png
  88. # The position of the splash image can be set with android_gravity, ios_content_mode, and
  89. # web_image_mode parameters. All default to center.
  90. #
  91. # android_gravity can be one of the following Android Gravity (see
  92. # https://developer.android.com/reference/android/view/Gravity): bottom, center,
  93. # center_horizontal, center_vertical, clip_horizontal, clip_vertical, end, fill, fill_horizontal,
  94. # fill_vertical, left, right, start, or top.
  95. android_gravity: center
  96. #
  97. # ios_content_mode can be one of the following iOS UIView.ContentMode (see
  98. # https://developer.apple.com/documentation/uikit/uiview/contentmode): scaleToFill,
  99. # scaleAspectFit, scaleAspectFill, center, top, bottom, left, right, topLeft, topRight,
  100. # bottomLeft, or bottomRight.
  101. #ios_content_mode: center
  102. #
  103. # web_image_mode can be one of the following modes: center, contain, stretch, and cover.
  104. #web_image_mode: center
  105. # The screen orientation can be set in Android with the android_screen_orientation parameter.
  106. # Valid parameters can be found here:
  107. # https://developer.android.com/guide/topics/manifest/activity-element#screen
  108. #android_screen_orientation: sensorLandscape
  109. # To hide the notification bar, use the fullscreen parameter. Has no effect in web since web
  110. # has no notification bar. Defaults to false.
  111. # NOTE: Unlike Android, iOS will not automatically show the notification bar when the app loads.
  112. # To show the notification bar, add the following code to your Flutter app:
  113. # WidgetsFlutterBinding.ensureInitialized();
  114. # SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom, SystemUiOverlay.top]);
  115. fullscreen: true
  116. # If you have changed the name(s) of your info.plist file(s), you can specify the filename(s)
  117. # with the info_plist_files parameter. Remove only the # characters in the three lines below,
  118. # do not remove any spaces:
  119. #info_plist_files:
  120. # - 'ios/Runner/Info-Debug.plist'
  121. # - 'ios/Runner/Info-Release.plist'