|
1 |
| -# flutter_native_splash: |
| 1 | +flutter_native_splash: |
2 | 2 | # This package generates native code to customize Flutter's default white native splash screen
|
3 | 3 | # with background color and splash image.
|
4 | 4 | # Customize the parameters below, and run the following command in the terminal:
|
5 |
| - # flutter pub run flutter_native_splash:create |
| 5 | + # dart run flutter_native_splash:create |
6 | 6 | # To restore Flutter's default white splash screen, run the following command in the terminal:
|
7 |
| - # flutter pub run flutter_native_splash:remove |
| 7 | + # dart run flutter_native_splash:remove |
| 8 | + |
| 9 | + # IMPORTANT NOTE: These parameter do not affect the configuration of Android 12 and later, which |
| 10 | + # handle splash screens differently that prior versions of Android. Android 12 and later must be |
| 11 | + # configured specifically in the android_12 section below. |
8 | 12 |
|
9 | 13 | # color or background_image is the only required parameter. Use color to set the background
|
10 | 14 | # of your splash screen to a solid color. Use background_image to set the background of your
|
11 | 15 | # splash screen to a png image. This is useful for gradients. The image will be stretch to the
|
12 | 16 | # size of the app. Only one parameter can be used, color and background_image cannot both be set.
|
13 |
| - # color: "#42a5f5" |
14 |
| - # background_image: "assets/background.png" |
| 17 | + color: "#EAE3D2" |
| 18 | + #background_image: "assets/background.png" |
15 | 19 |
|
16 | 20 | # Optional parameters are listed below. To enable a parameter, uncomment the line by removing
|
17 | 21 | # the leading # character.
|
18 | 22 |
|
19 | 23 | # The image parameter allows you to specify an image used in the splash screen. It must be a
|
20 | 24 | # png file and should be sized for 4x pixel density.
|
21 |
| - # image: assets/images/splash.png |
| 25 | + image: assets/app_splash_512.png |
22 | 26 |
|
23 | 27 | # The branding property allows you to specify an image used as branding in the splash screen.
|
24 | 28 | # It must be a png file. It is supported for Android, iOS and the Web. For Android 12,
|
|
29 | 33 | # and bottomLeft. The default values is bottom if not specified or specified something else.
|
30 | 34 | #branding_mode: bottom
|
31 | 35 |
|
| 36 | + # Set the branding padding from the bottom of the screen. The default value is 0 |
| 37 | + # branding_bottom_padding: 24 |
| 38 | + |
32 | 39 | # The color_dark, background_image_dark, image_dark, branding_dark are parameters that set the background
|
33 | 40 | # and image when the device is in dark mode. If they are not specified, the app will use the
|
34 |
| - # parameters from above. If the image_dark parameter is specified, color_dark or |
35 |
| - # background_image_dark must be specified. color_dark and background_image_dark cannot both be |
36 |
| - # set. |
37 |
| - # color_dark: "#ffffff" |
| 41 | + # parameters from above. If there is no parameter above, the app will use the light mode values. |
| 42 | + # If the image_dark parameter is specified, color_dark or background_image_dark must be specified. |
| 43 | + # color_dark and background_image_dark cannot both be set. |
| 44 | + color_dark: "#1B2B34" |
38 | 45 | #background_image_dark: "assets/dark-background.png"
|
39 | 46 | #image_dark: assets/splash-invert.png
|
40 | 47 | #branding_dark: assets/dart_dark.png
|
41 | 48 |
|
42 |
| - # Android 12 handles the splash screen differently than previous versions. Please visit |
43 |
| - # https://developer.android.com/guide/topics/ui/splash-screen |
44 |
| - # Following are Android 12 specific parameter. |
45 |
| - # android_12: |
46 |
| - # The image parameter sets the splash screen icon image. If this parameter is not specified, |
47 |
| - # the app's launcher icon will be used instead. |
48 |
| - # Please note that the splash screen will be clipped to a circle on the center of the screen. |
49 |
| - # App icon with an icon background: This should be 960×960 pixels, and fit within a circle |
50 |
| - # 640 pixels in diameter. |
51 |
| - # App icon without an icon background: This should be 1152×1152 pixels, and fit within a circle |
52 |
| - # 768 pixels in diameter. |
53 |
| - # image: assets/images/splash.png |
54 |
| - |
55 |
| - # Splash screen background color. |
56 |
| - #color: "#42a5f5" |
57 |
| - |
58 |
| - # App icon background color. |
59 |
| - #icon_background_color: "#111111" |
60 |
| - |
61 |
| - # The branding property allows you to specify an image used as branding in the splash screen. |
62 |
| - #branding: assets/dart.png |
63 |
| - |
64 |
| - # The image_dark, color_dark, icon_background_color_dark, and branding_dark set values that |
65 |
| - # apply when the device is in dark mode. If they are not specified, the app will use the |
66 |
| - # parameters from above. |
67 |
| - # image_dark: assets/images/splash.png |
68 |
| - # color_dark: "#ffffff" |
69 |
| - # icon_background_color_dark: "#ffffff" |
| 49 | + # From Android 12 onwards, the splash screen is handled differently than in previous versions. |
| 50 | + # Please visit https://developer.android.com/guide/topics/ui/splash-screen |
| 51 | + # Following are specific parameters for Android 12+. |
| 52 | + android_12: |
| 53 | + # The image parameter sets the splash screen icon image. If this parameter is not specified, |
| 54 | + # the app's launcher icon will be used instead. |
| 55 | + # Please note that the splash screen will be clipped to a circle on the center of the screen. |
| 56 | + # App icon with an icon background: This should be 960×960 pixels, and fit within a circle |
| 57 | + # 640 pixels in diameter. |
| 58 | + # App icon without an icon background: This should be 1152×1152 pixels, and fit within a circle |
| 59 | + # 768 pixels in diameter. To fit a 1152x1152 image within a circle with a 768 diameter, simply |
| 60 | + # ensure that the most important design elements of your image are placed within a circular area |
| 61 | + # with a 768 diameter at the center of the 1152x1152 canvas. |
| 62 | + image: assets/app_splash_1152.png |
| 63 | + |
| 64 | + # Splash screen background color. |
| 65 | + color: "#EAE3D2" |
| 66 | + |
| 67 | + # App icon background color. |
| 68 | + #icon_background_color: "#111111" |
| 69 | + |
| 70 | + # The branding property allows you to specify an image used as branding in the splash screen. |
| 71 | + #branding: assets/dart.png |
| 72 | + |
| 73 | + # The image_dark, color_dark, icon_background_color_dark, and branding_dark set values that |
| 74 | + # apply when the device is in dark mode. If they are not specified, the app will use the |
| 75 | + # parameters from above. If there is no parameter above, the app will use the light mode values. |
| 76 | + #image_dark: assets/android12splash-invert.png |
| 77 | + color_dark: "#1B2B34" |
| 78 | + #icon_background_color_dark: "#eeeeee" |
70 | 79 |
|
71 | 80 | # The android, ios and web parameters can be used to disable generating a splash screen on a given
|
72 | 81 | # platform.
|
73 |
| - # android: true |
74 |
| - # ios: true |
| 82 | + android: true |
| 83 | + ios: true |
75 | 84 | #web: false
|
76 | 85 |
|
77 | 86 | # Platform specific images can be specified with the following parameters, which will override
|
|
86 | 95 | #image_dark_android: assets/splash-invert-android.png
|
87 | 96 | #image_ios: assets/splash-ios.png
|
88 | 97 | #image_dark_ios: assets/splash-invert-ios.png
|
89 |
| - #image_web: assets/splash-web.png |
90 |
| - #image_dark_web: assets/splash-invert-web.png |
| 98 | + #image_web: assets/splash-web.gif |
| 99 | + #image_dark_web: assets/splash-invert-web.gif |
91 | 100 | #background_image_android: "assets/background-android.png"
|
92 | 101 | #background_image_dark_android: "assets/dark-background-android.png"
|
93 | 102 | #background_image_ios: "assets/background-ios.png"
|
94 | 103 | #background_image_dark_ios: "assets/dark-background-ios.png"
|
95 | 104 | #background_image_web: "assets/background-web.png"
|
96 | 105 | #background_image_dark_web: "assets/dark-background-web.png"
|
97 | 106 | #branding_android: assets/brand-android.png
|
| 107 | + #branding_bottom_padding_android: 24 |
98 | 108 | #branding_dark_android: assets/dart_dark-android.png
|
99 | 109 | #branding_ios: assets/brand-ios.png
|
| 110 | + #branding_bottom_padding_ios: 24 |
100 | 111 | #branding_dark_ios: assets/dart_dark-ios.png
|
| 112 | + #branding_web: assets/brand-web.gif |
| 113 | + #branding_dark_web: assets/dart_dark-web.gif |
101 | 114 |
|
102 | 115 | # The position of the splash image can be set with android_gravity, ios_content_mode, and
|
103 | 116 | # web_image_mode parameters. All default to center.
|
|
112 | 125 | # https://developer.apple.com/documentation/uikit/uiview/contentmode): scaleToFill,
|
113 | 126 | # scaleAspectFit, scaleAspectFill, center, top, bottom, left, right, topLeft, topRight,
|
114 | 127 | # bottomLeft, or bottomRight.
|
115 |
| - # ios_content_mode: center |
| 128 | + #ios_content_mode: center |
116 | 129 | #
|
117 | 130 | # web_image_mode can be one of the following modes: center, contain, stretch, and cover.
|
118 | 131 | #web_image_mode: center
|
|
127 | 140 | # NOTE: Unlike Android, iOS will not automatically show the notification bar when the app loads.
|
128 | 141 | # To show the notification bar, add the following code to your Flutter app:
|
129 | 142 | # WidgetsFlutterBinding.ensureInitialized();
|
130 |
| - # SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom, SystemUiOverlay.top]); |
131 |
| - # fullscreen: true |
| 143 | + # SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.bottom, SystemUiOverlay.top], ); |
| 144 | + #fullscreen: true |
132 | 145 |
|
133 | 146 | # If you have changed the name(s) of your info.plist file(s), you can specify the filename(s)
|
134 | 147 | # with the info_plist_files parameter. Remove only the # characters in the three lines below,
|
|
137 | 150 | # - 'ios/Runner/Info-Debug.plist'
|
138 | 151 | # - 'ios/Runner/Info-Release.plist'
|
139 | 152 |
|
140 |
| -flutter_native_splash: |
141 |
| - color: "#ffffff" |
142 |
| - image: assets/images/splash.png |
143 |
| - android: true |
144 |
| - ios: true |
145 |
| - # flutter pub run flutter_native_splash:create |
| 153 | +# flutter pub run flutter_native_splash:create |
0 commit comments