Skip to content

Commit 4e74a5b

Browse files
committed
add icons and splash screen and use the latest version of fusion package
1 parent 35426a1 commit 4e74a5b

File tree

84 files changed

+584
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+584
-154
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<bitmap android:gravity="fill" android:src="@drawable/background"/>
5+
</item>
6+
<item>
7+
<bitmap android:gravity="center" android:src="@drawable/splash"/>
8+
</item>
9+
</layer-list>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item>
4+
<bitmap android:gravity="fill" android:src="@drawable/background"/>
5+
</item>
6+
<item>
7+
<bitmap android:gravity="center" android:src="@drawable/splash"/>
8+
</item>
9+
</layer-list>
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- Modify this file to customize your launch splash screen -->
32
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4-
<item android:drawable="?android:colorBackground" />
5-
6-
<!-- You can insert your own image assets here -->
7-
<!-- <item>
8-
<bitmap
9-
android:gravity="center"
10-
android:src="@mipmap/launch_image" />
11-
</item> -->
3+
<item>
4+
<bitmap android:gravity="fill" android:src="@drawable/background"/>
5+
</item>
6+
<item>
7+
<bitmap android:gravity="center" android:src="@drawable/splash"/>
8+
</item>
129
</layer-list>
69 Bytes
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- Modify this file to customize your launch splash screen -->
32
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
4-
<item android:drawable="@android:color/white" />
5-
6-
<!-- You can insert your own image assets here -->
7-
<!-- <item>
8-
<bitmap
9-
android:gravity="center"
10-
android:src="@mipmap/launch_image" />
11-
</item> -->
3+
<item>
4+
<bitmap android:gravity="fill" android:src="@drawable/background"/>
5+
</item>
6+
<item>
7+
<bitmap android:gravity="center" android:src="@drawable/splash"/>
8+
</item>
129
</layer-list>

android/app/src/main/res/values-night/styles.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
<!-- Show a splash screen on the activity. Automatically removed when
66
the Flutter engine draws its first frame -->
77
<item name="android:windowBackground">@drawable/launch_background</item>
8+
<item name="android:forceDarkAllowed">false</item>
9+
<item name="android:windowFullscreen">true</item>
10+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
11+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
812
</style>
913
<!-- Theme applied to the Android Window as soon as the process has started.
1014
This theme determines the color of the Android Window while your

android/app/src/main/res/values/styles.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
<!-- Show a splash screen on the activity. Automatically removed when
66
the Flutter engine draws its first frame -->
77
<item name="android:windowBackground">@drawable/launch_background</item>
8+
<item name="android:forceDarkAllowed">false</item>
9+
<item name="android:windowFullscreen">true</item>
10+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
11+
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
812
</style>
913
<!-- Theme applied to the Android Window as soon as the process has started.
1014
This theme determines the color of the Android Window while your

flutter_launcher_icons.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
flutter_icons:
2+
#image_path: "assets/icons/movie.png"
3+
image_path_android: "assets/images/TexFusion.png"
4+
image_path_ios: "assets/images/TexFusion.png"
5+
android: true # can specify file name here e.g. "ic_launcher"
6+
ios: true # can specify file name here e.g. "My-Launcher-Icon"
7+
#adaptive_icon_background: "assets/images/christmas-background.png" # only available for Android 8.0 devices and above
8+
#adaptive_icon_foreground: "assets/images/icon-foreground-432x432.png" # only available for Android 8.0 devices and above
9+
#min_sdk_android: 21 # android min sdk min:16, default 21
10+
remove_alpha_ios: true
11+
web:
12+
generate: true
13+
image_path: "assets/images/TexFusion.png"
14+
background_color: "#ffffff"
15+
theme_color: "#ffffff"
16+
windows:
17+
generate: true
18+
image_path: "assets/images/TexFusion.png"
19+
icon_size: 48 # min:48, max:256, default: 48
20+
macos:
21+
generate: true
22+
image_path: "assets/images/TexFusion.png"

flutter_native_splash.yaml

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
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+
9+
# color or background_image is the only required parameter. Use color to set the background
10+
# of your splash screen to a solid color. Use background_image to set the background of your
11+
# splash screen to a png image. This is useful for gradients. The image will be stretch to the
12+
# size of the app. Only one parameter can be used, color and background_image cannot both be set.
13+
color: "#ffffff"
14+
#background_image: "assets/background.png"
15+
16+
# Optional parameters are listed below. To enable a parameter, uncomment the line by removing
17+
# the leading # character.
18+
19+
# The image parameter allows you to specify an image used in the splash screen. It must be a
20+
# png file and should be sized for 4x pixel density.
21+
image: assets/images/TexFusion.png
22+
23+
# The branding property allows you to specify an image used as branding in the splash screen.
24+
# It must be a png file. It is supported for Android, iOS and the Web. For Android 12,
25+
# see the Android 12 section below.
26+
#branding: assets/dart.png
27+
28+
# To position the branding image at the bottom of the screen you can use bottom, bottomRight,
29+
# and bottomLeft. The default values is bottom if not specified or specified something else.
30+
#branding_mode: bottom
31+
32+
# The color_dark, background_image_dark, image_dark, branding_dark are parameters that set the background
33+
# 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: "#000000"
38+
#background_image_dark: "assets/dark-background.png"
39+
image_dark: assets/images/TexFusion.png
40+
#branding_dark: assets/dart_dark.png
41+
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/icons/movie-960x960.png
54+
55+
# Splash screen background color.
56+
#color: "#000000"
57+
58+
# App icon background color.
59+
#icon_background_color: "#000000"
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/icons/movie-960x960.png
68+
#color_dark: "#000000"
69+
#icon_background_color_dark: "#000000"
70+
71+
# The android, ios and web parameters can be used to disable generating a splash screen on a given
72+
# platform.
73+
#android: true
74+
#ios: true
75+
#web: true
76+
77+
# Platform specific images can be specified with the following parameters, which will override
78+
# the respective parameter. You may specify all, selected, or none of these parameters:
79+
#color_android: "#42a5f5"
80+
#color_dark_android: "#042a49"
81+
#color_ios: "#42a5f5"
82+
#color_dark_ios: "#042a49"
83+
#color_web: "#42a5f5"
84+
#color_dark_web: "#042a49"
85+
#image_android: assets/splash-android.png
86+
#image_dark_android: assets/splash-invert-android.png
87+
#image_ios: assets/splash-ios.png
88+
#image_dark_ios: assets/splash-invert-ios.png
89+
#image_web: assets/splash-web.png
90+
#image_dark_web: assets/splash-invert-web.png
91+
#background_image_android: "assets/background-android.png"
92+
#background_image_dark_android: "assets/dark-background-android.png"
93+
#background_image_ios: "assets/background-ios.png"
94+
#background_image_dark_ios: "assets/dark-background-ios.png"
95+
#background_image_web: "assets/background-web.png"
96+
#background_image_dark_web: "assets/dark-background-web.png"
97+
#branding_android: assets/brand-android.png
98+
#branding_dark_android: assets/dart_dark-android.png
99+
#branding_ios: assets/brand-ios.png
100+
#branding_dark_ios: assets/dart_dark-ios.png
101+
102+
# The position of the splash image can be set with android_gravity, ios_content_mode, and
103+
# web_image_mode parameters. All default to center.
104+
#
105+
# android_gravity can be one of the following Android Gravity (see
106+
# https://developer.android.com/reference/android/view/Gravity): bottom, center,
107+
# center_horizontal, center_vertical, clip_horizontal, clip_vertical, end, fill, fill_horizontal,
108+
# fill_vertical, left, right, start, or top.
109+
#android_gravity: center
110+
#
111+
# ios_content_mode can be one of the following iOS UIView.ContentMode (see
112+
# https://developer.apple.com/documentation/uikit/uiview/contentmode): scaleToFill,
113+
# scaleAspectFit, scaleAspectFill, center, top, bottom, left, right, topLeft, topRight,
114+
# bottomLeft, or bottomRight.
115+
#ios_content_mode: center
116+
#
117+
# web_image_mode can be one of the following modes: center, contain, stretch, and cover.
118+
#web_image_mode: center
119+
120+
# The screen orientation can be set in Android with the android_screen_orientation parameter.
121+
# Valid parameters can be found here:
122+
# https://developer.android.com/guide/topics/manifest/activity-element#screen
123+
#android_screen_orientation: sensorLandscape
124+
125+
# To hide the notification bar, use the fullscreen parameter. Has no effect in web since web
126+
# has no notification bar. Defaults to false.
127+
# NOTE: Unlike Android, iOS will not automatically show the notification bar when the app loads.
128+
# To show the notification bar, add the following code to your Flutter app:
129+
# WidgetsFlutterBinding.ensureInitialized();
130+
# SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom, SystemUiOverlay.top]);
131+
fullscreen: true
132+
133+
# If you have changed the name(s) of your info.plist file(s), you can specify the filename(s)
134+
# with the info_plist_files parameter. Remove only the # characters in the three lines below,
135+
# do not remove any spaces:
136+
#info_plist_files:
137+
# - 'ios/Runner/Info-Debug.plist'
138+
# - 'ios/Runner/Info-Release.plist'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "background.png",
5+
"idiom" : "universal"
6+
},
7+
{
8+
"appearances" : [
9+
{
10+
"appearance" : "luminosity",
11+
"value" : "dark"
12+
}
13+
],
14+
"filename" : "darkbackground.png",
15+
"idiom" : "universal"
16+
}
17+
],
18+
"info" : {
19+
"author" : "xcode",
20+
"version" : 1
21+
}
22+
}
Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,56 @@
11
{
22
"images" : [
33
{
4-
"idiom" : "universal",
54
"filename" : "LaunchImage.png",
5+
"idiom" : "universal",
66
"scale" : "1x"
77
},
88
{
9+
"appearances" : [
10+
{
11+
"appearance" : "luminosity",
12+
"value" : "dark"
13+
}
14+
],
15+
"filename" : "LaunchImageDark.png",
916
"idiom" : "universal",
17+
"scale" : "1x"
18+
},
19+
{
1020
"filename" : "LaunchImage@2x.png",
21+
"idiom" : "universal",
1122
"scale" : "2x"
1223
},
1324
{
25+
"appearances" : [
26+
{
27+
"appearance" : "luminosity",
28+
"value" : "dark"
29+
}
30+
],
31+
"filename" : "LaunchImageDark@2x.png",
1432
"idiom" : "universal",
33+
"scale" : "2x"
34+
},
35+
{
1536
"filename" : "LaunchImage@3x.png",
37+
"idiom" : "universal",
38+
"scale" : "3x"
39+
},
40+
{
41+
"appearances" : [
42+
{
43+
"appearance" : "luminosity",
44+
"value" : "dark"
45+
}
46+
],
47+
"filename" : "LaunchImageDark@3x.png",
48+
"idiom" : "universal",
1649
"scale" : "3x"
1750
}
1851
],
1952
"info" : {
20-
"version" : 1,
21-
"author" : "xcode"
53+
"author" : "xcode",
54+
"version" : 1
2255
}
2356
}

ios/Runner/Base.lproj/LaunchScreen.storyboard

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,19 @@
1616
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
1717
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1818
<subviews>
19-
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
20-
</imageView>
19+
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" image="LaunchBackground" translatesAutoresizingMaskIntoConstraints="NO" id="tWc-Dq-wcI"/>
20+
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4"></imageView>
2121
</subviews>
2222
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2323
<constraints>
24-
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
25-
<constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
24+
<constraint firstItem="YRO-k0-Ey4" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="3T2-ad-Qdv"/>
25+
<constraint firstItem="tWc-Dq-wcI" firstAttribute="bottom" secondItem="Ze5-6b-2t3" secondAttribute="bottom" id="RPx-PI-7Xg"/>
26+
<constraint firstItem="tWc-Dq-wcI" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="SdS-ul-q2q"/>
27+
<constraint firstAttribute="trailing" secondItem="tWc-Dq-wcI" secondAttribute="trailing" id="Swv-Gf-Rwn"/>
28+
<constraint firstAttribute="trailing" secondItem="YRO-k0-Ey4" secondAttribute="trailing" id="TQA-XW-tRk"/>
29+
<constraint firstItem="YRO-k0-Ey4" firstAttribute="bottom" secondItem="Ze5-6b-2t3" secondAttribute="bottom" id="duK-uY-Gun"/>
30+
<constraint firstItem="tWc-Dq-wcI" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="kV7-tw-vXt"/>
31+
<constraint firstItem="YRO-k0-Ey4" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="xPn-NY-SIU"/>
2632
</constraints>
2733
</view>
2834
</viewController>
@@ -32,6 +38,7 @@
3238
</scene>
3339
</scenes>
3440
<resources>
35-
<image name="LaunchImage" width="168" height="185"/>
41+
<image name="LaunchImage" width="1024" height="1024"/>
42+
<image name="LaunchBackground" width="1" height="1"/>
3643
</resources>
3744
</document>

0 commit comments

Comments
 (0)