Update splash screen
BIN
android/app/src/main/res/drawable-hdpi/branding.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
android/app/src/main/res/drawable-hdpi/splash.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
android/app/src/main/res/drawable-mdpi/branding.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
android/app/src/main/res/drawable-mdpi/splash.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 1.3 MiB |
|
|
@ -3,4 +3,7 @@
|
|||
<item>
|
||||
<bitmap android:gravity="fill" android:src="@drawable/background"/>
|
||||
</item>
|
||||
<item>
|
||||
<bitmap android:gravity="center" android:src="@drawable/splash"/>
|
||||
</item>
|
||||
</layer-list>
|
||||
BIN
android/app/src/main/res/drawable-xhdpi/branding.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
android/app/src/main/res/drawable-xhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
android/app/src/main/res/drawable-xxhdpi/branding.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
android/app/src/main/res/drawable-xxhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
android/app/src/main/res/drawable-xxxhdpi/branding.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
android/app/src/main/res/drawable-xxxhdpi/splash.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 1.3 MiB |
|
|
@ -3,4 +3,7 @@
|
|||
<item>
|
||||
<bitmap android:gravity="fill" android:src="@drawable/background"/>
|
||||
</item>
|
||||
<item>
|
||||
<bitmap android:gravity="center" android:src="@drawable/splash"/>
|
||||
</item>
|
||||
</layer-list>
|
||||
BIN
assets/icons/bg.png
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
BIN
assets/icons/logo.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 70 B After Width: | Height: | Size: 1.3 MiB |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 68 B After Width: | Height: | Size: 16 KiB |
|
|
@ -18,6 +18,7 @@
|
|||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" image="LaunchBackground" translatesAutoresizingMaskIntoConstraints="NO" id="tWc-Dq-wcI"/>
|
||||
<imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4"></imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" image="BrandingImage" translatesAutoresizingMaskIntoConstraints="NO" id="Uyq-Kz-ftE"/>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
|
|
@ -38,7 +39,8 @@
|
|||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="LaunchImage" width="168" height="185"/>
|
||||
<image name="LaunchImage" width="757" height="358"/>
|
||||
<image name="LaunchBackground" width="1" height="1"/>
|
||||
<image name="BrandingImage" width="1" height="1"/>
|
||||
</resources>
|
||||
</document>
|
||||
|
|
@ -715,7 +715,7 @@ packages:
|
|||
name: shared_preferences
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "2.0.12"
|
||||
version: "2.0.13"
|
||||
shared_preferences_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
|
|
|||
|
|
@ -136,15 +136,15 @@ flutter_native_splash:
|
|||
# of your splash screen to a solid color. Use background_image to set the background of your
|
||||
# splash screen to a png image. This is useful for gradients. The image will be stretch to the
|
||||
# size of the app. Only one parameter can be used, color and background_image cannot both be set.
|
||||
color: "#000000"
|
||||
#background_image: "assets/background.png"
|
||||
# color: "#000000"
|
||||
background_image: "assets/icons/bg.png"
|
||||
|
||||
# Optional parameters are listed below. To enable a parameter, uncomment the line by removing
|
||||
# the leading # character.
|
||||
|
||||
# The image parameter allows you to specify an image used in the splash screen. It must be a
|
||||
# png file and should be sized for 4x pixel density.
|
||||
#image: assets/splash.png
|
||||
image: assets/icons/logo.png
|
||||
|
||||
# This property allows you to specify an image used as branding in the splash screen. It must be
|
||||
# a png file. Currently, it is only supported for Android and iOS.
|
||||
|
|
|
|||
|
|
@ -34,6 +34,11 @@
|
|||
<link rel="stylesheet" type="text/css" href="splash/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<picture id="splash">
|
||||
<source srcset="splash/img/light-1x.png 1x, splash/img/light-2x.png 2x, splash/img/light-3x.png 3x, splash/img/light-4x.png 4x" media="(prefers-color-scheme: light) or (prefers-color-scheme: no-preference)">
|
||||
<source srcset="splash/img/dark-1x.png 1x, splash/img/dark-2x.png 2x, splash/img/dark-3x.png 3x, splash/img/dark-4x.png 4x" media="(prefers-color-scheme: dark)">
|
||||
<img class="center" aria-hidden="true" src="splash/img/light-1x.png" />
|
||||
</picture>
|
||||
<!-- This script installs service_worker.js to provide PWA functionality to
|
||||
application. For more information, see:
|
||||
https://developers.google.com/web/fundamentals/primers/service-workers -->
|
||||
|
|
|
|||
BIN
web/splash/img/dark-1x.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
web/splash/img/dark-2x.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
web/splash/img/dark-3x.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
web/splash/img/dark-4x.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
web/splash/img/light-1x.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
web/splash/img/light-2x.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
web/splash/img/light-3x.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
web/splash/img/light-4x.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
web/splash/img/light-background.png
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
|
|
@ -2,7 +2,7 @@ body, html {
|
|||
margin:0;
|
||||
height:100%;
|
||||
background: #000000;
|
||||
|
||||
background-image: url("img/light-background.png");
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ body, html {
|
|||
margin:0;
|
||||
height:100%;
|
||||
background: #000000;
|
||||
|
||||
background-image: url("img/dark-background.png");
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
|||