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
+ # dart run flutter_native_splash:create
6
+ # To restore Flutter's default white splash screen, run the following command in the terminal:
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.
12
+
13
+ # color or background_image is the only required parameter. Use color to set the background
14
+ # of your splash screen to a solid color. Use background_image to set the background of your
15
+ # splash screen to a png image. This is useful for gradients. The image will be stretch to the
16
+ # size of the app. Only one parameter can be used, color and background_image cannot both be set.
17
+ color : " #0ED2F7"
18
+ # background_image: "assets/icon/white_2.svg"
19
+
20
+ # Optional parameters are listed below. To enable a parameter, uncomment the line by removing
21
+ # the leading # character.
22
+
23
+ # The image parameter allows you to specify an image used in the splash screen. It must be a
24
+ # png file and should be sized for 4x pixel density.
25
+ image : " assets/logo/white_2.png"
26
+
27
+ # The branding property allows you to specify an image used as branding in the splash screen.
28
+ # It must be a png file. It is supported for Android, iOS and the Web. For Android 12,
29
+ # see the Android 12 section below.
30
+ # branding: assets/dart.png
31
+
32
+ # To position the branding image at the bottom of the screen you can use bottom, bottomRight,
33
+ # and bottomLeft. The default values is bottom if not specified or specified something else.
34
+ # branding_mode: bottom
35
+
36
+ # Set the branding padding from the bottom of the screen. The default value is 0
37
+ # branding_bottom_padding: 24
38
+
39
+ # The color_dark, background_image_dark, image_dark, branding_dark are parameters that set the background
40
+ # and image when the device is in dark mode. If they are not specified, the app will use the
41
+ # parameters from above. If the image_dark parameter is specified, color_dark or
42
+ # background_image_dark must be specified. color_dark and background_image_dark cannot both be
43
+ # set.
44
+ # color_dark: "#042a49"
45
+ # background_image_dark: "assets/dark-background.png"
46
+ # image_dark: assets/splash-invert.png
47
+ # branding_dark: assets/dart_dark.png
48
+
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.
60
+ # image: assets/android12splash.png
61
+
62
+ # Splash screen background color.
63
+ # color: "#42a5f5"
64
+
65
+ # App icon background color.
66
+ # icon_background_color: "#111111"
67
+
68
+ # The branding property allows you to specify an image used as branding in the splash screen.
69
+ # branding: assets/dart.png
70
+
71
+ # The image_dark, color_dark, icon_background_color_dark, and branding_dark set values that
72
+ # apply when the device is in dark mode. If they are not specified, the app will use the
73
+ # parameters from above.
74
+ # image_dark: assets/android12splash-invert.png
75
+ # color_dark: "#042a49"
76
+ # icon_background_color_dark: "#eeeeee"
77
+
78
+ # The android, ios and web parameters can be used to disable generating a splash screen on a given
79
+ # platform.
80
+ # android: false
81
+ # ios: false
82
+ # web: false
83
+
84
+ # Platform specific images can be specified with the following parameters, which will override
85
+ # the respective parameter. You may specify all, selected, or none of these parameters:
86
+ # color_android: "#42a5f5"
87
+ # color_dark_android: "#042a49"
88
+ # color_ios: "#42a5f5"
89
+ # color_dark_ios: "#042a49"
90
+ # color_web: "#42a5f5"
91
+ # color_dark_web: "#042a49"
92
+ # image_android: assets/splash-android.png
93
+ # image_dark_android: assets/splash-invert-android.png
94
+ # image_ios: assets/splash-ios.png
95
+ # image_dark_ios: assets/splash-invert-ios.png
96
+ # image_web: assets/splash-web.gif
97
+ # image_dark_web: assets/splash-invert-web.gif
98
+ # background_image_android: "assets/background-android.png"
99
+ # background_image_dark_android: "assets/dark-background-android.png"
100
+ # background_image_ios: "assets/background-ios.png"
101
+ # background_image_dark_ios: "assets/dark-background-ios.png"
102
+ # background_image_web: "assets/background-web.png"
103
+ # background_image_dark_web: "assets/dark-background-web.png"
104
+ # branding_android: assets/brand-android.png
105
+ # branding_bottom_padding_android: 24
106
+ # branding_dark_android: assets/dart_dark-android.png
107
+ # branding_ios: assets/brand-ios.png
108
+ # branding_bottom_padding_ios: 24
109
+ # branding_dark_ios: assets/dart_dark-ios.png
110
+ # branding_web: assets/brand-web.gif
111
+ # branding_dark_web: assets/dart_dark-web.gif
112
+
113
+ # The position of the splash image can be set with android_gravity, ios_content_mode, and
114
+ # web_image_mode parameters. All default to center.
115
+ #
116
+ # android_gravity can be one of the following Android Gravity (see
117
+ # https://developer.android.com/reference/android/view/Gravity): bottom, center,
118
+ # center_horizontal, center_vertical, clip_horizontal, clip_vertical, end, fill, fill_horizontal,
119
+ # fill_vertical, left, right, start, or top.
120
+ # android_gravity: center
121
+ #
122
+ # ios_content_mode can be one of the following iOS UIView.ContentMode (see
123
+ # https://developer.apple.com/documentation/uikit/uiview/contentmode): scaleToFill,
124
+ # scaleAspectFit, scaleAspectFill, center, top, bottom, left, right, topLeft, topRight,
125
+ # bottomLeft, or bottomRight.
126
+ # ios_content_mode: center
127
+ #
128
+ # web_image_mode can be one of the following modes: center, contain, stretch, and cover.
129
+ # web_image_mode: center
130
+
131
+ # The screen orientation can be set in Android with the android_screen_orientation parameter.
132
+ # Valid parameters can be found here:
133
+ # https://developer.android.com/guide/topics/manifest/activity-element#screen
134
+ # android_screen_orientation: sensorLandscape
135
+
136
+ # To hide the notification bar, use the fullscreen parameter. Has no effect in web since web
137
+ # has no notification bar. Defaults to false.
138
+ # NOTE: Unlike Android, iOS will not automatically show the notification bar when the app loads.
139
+ # To show the notification bar, add the following code to your Flutter app:
140
+ # WidgetsFlutterBinding.ensureInitialized();
141
+ # SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: [SystemUiOverlay.bottom, SystemUiOverlay.top], );
142
+ # fullscreen: true
143
+
144
+ # If you have changed the name(s) of your info.plist file(s), you can specify the filename(s)
145
+ # with the info_plist_files parameter. Remove only the # characters in the three lines below,
146
+ # do not remove any spaces:
147
+ # info_plist_files:
148
+ # - 'ios/Runner/Info-Debug.plist'
149
+ # - 'ios/Runner/Info-Release.plist'
0 commit comments