~repos /only-bible-app

#kotlin#android#ios

git clone https://pyrossh.dev/repos/only-bible-app.git

The only bible app you will ever need. No ads. No in-app purchases. No distractions.


165ce981 pyrossh

2 years ago
add splash
Files changed (35) hide show
  1. README.md +13 -1
  2. android/app/src/main/res/drawable-hdpi/splash.png +0 -0
  3. android/app/src/main/res/drawable-mdpi/splash.png +0 -0
  4. android/app/src/main/res/drawable-v21/background.png +0 -0
  5. android/app/src/main/res/drawable-v21/launch_background.xml +6 -9
  6. android/app/src/main/res/drawable-xhdpi/splash.png +0 -0
  7. android/app/src/main/res/drawable-xxhdpi/splash.png +0 -0
  8. android/app/src/main/res/drawable-xxxhdpi/splash.png +0 -0
  9. android/app/src/main/res/drawable/background.png +0 -0
  10. android/app/src/main/res/drawable/launch_background.xml +6 -9
  11. android/app/src/main/res/values-night-v31/styles.xml +19 -0
  12. android/app/src/main/res/values-night/styles.xml +4 -0
  13. android/app/src/main/res/values-v31/styles.xml +19 -0
  14. android/app/src/main/res/values/styles.xml +4 -0
  15. ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json +21 -0
  16. ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png +0 -0
  17. ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json +5 -5
  18. ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png +0 -0
  19. ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png +0 -0
  20. ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png +0 -0
  21. ios/Runner/Base.lproj/LaunchScreen.storyboard +12 -5
  22. ios/Runner/Info.plist +49 -47
  23. lib/main.dart +1 -1
  24. lib/{firebase_options.dart → options.dart} +1 -1
  25. lib/state.dart +2 -2
  26. pubspec.yaml +1 -6
  27. web/index.html +80 -7
  28. web/splash/img/dark-1x.png +0 -0
  29. web/splash/img/dark-2x.png +0 -0
  30. web/splash/img/dark-3x.png +0 -0
  31. web/splash/img/dark-4x.png +0 -0
  32. web/splash/img/light-1x.png +0 -0
  33. web/splash/img/light-2x.png +0 -0
  34. web/splash/img/light-3x.png +0 -0
  35. web/splash/img/light-4x.png +0 -0
README.md CHANGED
@@ -19,11 +19,23 @@ dart format lib
19
19
  ```agsl
20
20
  dart pub global activate flutterfire_cli
21
21
  flutterfire configure --project=only-bible-app
22
- flutter pub run flutter_launcher_icons
22
+ dart run flutter_launcher_icons
23
+ dart run flutter_native_splash:create
23
24
  ```
24
25
 
25
26
  ## Run
26
27
  ```agsl
27
28
  flutter clean
28
29
  flutter run
30
+ ```
31
+
32
+ ## Test
33
+ ```agsl
34
+ flutter test
35
+ ```
36
+
37
+ ## Deploy
38
+ ```agsl
39
+ flutter build web
40
+ firebase deploy
29
41
  ```
android/app/src/main/res/drawable-hdpi/splash.png ADDED
Binary file
android/app/src/main/res/drawable-mdpi/splash.png ADDED
Binary file
android/app/src/main/res/drawable-v21/background.png ADDED
Binary file
android/app/src/main/res/drawable-v21/launch_background.xml CHANGED
@@ -1,12 +1,9 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Modify this file to customize your launch splash screen -->
3
2
  <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>
3
+ <item>
8
- <bitmap
9
- android:gravity="center"
10
- android:src="@mipmap/launch_image" />
4
+ <bitmap android:gravity="fill" android:src="@drawable/background"/>
11
- </item> -->
5
+ </item>
6
+ <item>
7
+ <bitmap android:gravity="center" android:src="@drawable/splash"/>
8
+ </item>
12
9
  </layer-list>
android/app/src/main/res/drawable-xhdpi/splash.png ADDED
Binary file
android/app/src/main/res/drawable-xxhdpi/splash.png ADDED
Binary file
android/app/src/main/res/drawable-xxxhdpi/splash.png ADDED
Binary file
android/app/src/main/res/drawable/background.png ADDED
Binary file
android/app/src/main/res/drawable/launch_background.xml CHANGED
@@ -1,12 +1,9 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Modify this file to customize your launch splash screen -->
3
2
  <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>
3
+ <item>
8
- <bitmap
9
- android:gravity="center"
10
- android:src="@mipmap/launch_image" />
4
+ <bitmap android:gravity="fill" android:src="@drawable/background"/>
11
- </item> -->
5
+ </item>
6
+ <item>
7
+ <bitmap android:gravity="center" android:src="@drawable/splash"/>
8
+ </item>
12
9
  </layer-list>
android/app/src/main/res/values-night-v31/styles.xml ADDED
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <resources>
3
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4
+ <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
5
+ <item name="android:forceDarkAllowed">false</item>
6
+ <item name="android:windowFullscreen">false</item>
7
+ <item name="android:windowDrawsSystemBarBackgrounds">false</item>
8
+ <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
9
+ </style>
10
+ <!-- Theme applied to the Android Window as soon as the process has started.
11
+ This theme determines the color of the Android Window while your
12
+ Flutter UI initializes, as well as behind your Flutter UI while its
13
+ running.
14
+
15
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
16
+ <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
17
+ <item name="android:windowBackground">?android:colorBackground</item>
18
+ </style>
19
+ </resources>
android/app/src/main/res/values-night/styles.xml CHANGED
@@ -5,6 +5,10 @@
5
5
  <!-- Show a splash screen on the activity. Automatically removed when
6
6
  the Flutter engine draws its first frame -->
7
7
  <item name="android:windowBackground">@drawable/launch_background</item>
8
+ <item name="android:forceDarkAllowed">false</item>
9
+ <item name="android:windowFullscreen">false</item>
10
+ <item name="android:windowDrawsSystemBarBackgrounds">false</item>
11
+ <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
8
12
  </style>
9
13
  <!-- Theme applied to the Android Window as soon as the process has started.
10
14
  This theme determines the color of the Android Window while your
android/app/src/main/res/values-v31/styles.xml ADDED
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <resources>
3
+ <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
4
+ <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
5
+ <item name="android:forceDarkAllowed">false</item>
6
+ <item name="android:windowFullscreen">false</item>
7
+ <item name="android:windowDrawsSystemBarBackgrounds">false</item>
8
+ <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
9
+ </style>
10
+ <!-- Theme applied to the Android Window as soon as the process has started.
11
+ This theme determines the color of the Android Window while your
12
+ Flutter UI initializes, as well as behind your Flutter UI while its
13
+ running.
14
+
15
+ This Theme is only used starting with V2 of Flutter's Android embedding. -->
16
+ <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
17
+ <item name="android:windowBackground">?android:colorBackground</item>
18
+ </style>
19
+ </resources>
android/app/src/main/res/values/styles.xml CHANGED
@@ -5,6 +5,10 @@
5
5
  <!-- Show a splash screen on the activity. Automatically removed when
6
6
  the Flutter engine draws its first frame -->
7
7
  <item name="android:windowBackground">@drawable/launch_background</item>
8
+ <item name="android:forceDarkAllowed">false</item>
9
+ <item name="android:windowFullscreen">false</item>
10
+ <item name="android:windowDrawsSystemBarBackgrounds">false</item>
11
+ <item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
8
12
  </style>
9
13
  <!-- Theme applied to the Android Window as soon as the process has started.
10
14
  This theme determines the color of the Android Window while your
ios/Runner/Assets.xcassets/LaunchBackground.imageset/Contents.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "filename" : "background.png",
5
+ "idiom" : "universal",
6
+ "scale" : "1x"
7
+ },
8
+ {
9
+ "idiom" : "universal",
10
+ "scale" : "2x"
11
+ },
12
+ {
13
+ "idiom" : "universal",
14
+ "scale" : "3x"
15
+ }
16
+ ],
17
+ "info" : {
18
+ "author" : "xcode",
19
+ "version" : 1
20
+ }
21
+ }
ios/Runner/Assets.xcassets/LaunchBackground.imageset/background.png ADDED
Binary file
ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "images" : [
3
3
  {
4
- "idiom" : "universal",
5
4
  "filename" : "LaunchImage.png",
5
+ "idiom" : "universal",
6
6
  "scale" : "1x"
7
7
  },
8
8
  {
9
- "idiom" : "universal",
10
9
  "filename" : "LaunchImage@2x.png",
10
+ "idiom" : "universal",
11
11
  "scale" : "2x"
12
12
  },
13
13
  {
14
- "idiom" : "universal",
15
14
  "filename" : "LaunchImage@3x.png",
15
+ "idiom" : "universal",
16
16
  "scale" : "3x"
17
17
  }
18
18
  ],
19
19
  "info" : {
20
- "version" : 1,
21
- "author" : "xcode"
20
+ "author" : "xcode",
21
+ "version" : 1
22
22
  }
23
23
  }
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png CHANGED
Binary file
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png CHANGED
Binary file
ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png CHANGED
Binary file
ios/Runner/Base.lproj/LaunchScreen.storyboard CHANGED
@@ -16,13 +16,19 @@
16
16
  <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17
17
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
18
  <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>
21
21
  </subviews>
22
22
  <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
23
23
  <constraints>
24
- <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
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"/>
25
- <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
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"/>
26
32
  </constraints>
27
33
  </view>
28
34
  </viewController>
@@ -32,6 +38,7 @@
32
38
  </scene>
33
39
  </scenes>
34
40
  <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"/>
36
43
  </resources>
37
44
  </document>
ios/Runner/Info.plist CHANGED
@@ -1,51 +1,53 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
- <dict>
4
+ <dict>
5
- <key>CFBundleDevelopmentRegion</key>
5
+ <key>CFBundleDevelopmentRegion</key>
6
- <string>$(DEVELOPMENT_LANGUAGE)</string>
6
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
7
- <key>CFBundleDisplayName</key>
7
+ <key>CFBundleDisplayName</key>
8
- <string>Only Bible App</string>
8
+ <string>Only Bible App</string>
9
- <key>CFBundleExecutable</key>
9
+ <key>CFBundleExecutable</key>
10
- <string>$(EXECUTABLE_NAME)</string>
10
+ <string>$(EXECUTABLE_NAME)</string>
11
- <key>CFBundleIdentifier</key>
11
+ <key>CFBundleIdentifier</key>
12
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
12
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
- <key>CFBundleInfoDictionaryVersion</key>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
- <string>6.0</string>
14
+ <string>6.0</string>
15
- <key>CFBundleName</key>
15
+ <key>CFBundleName</key>
16
- <string>only_bible_app</string>
16
+ <string>only_bible_app</string>
17
- <key>CFBundlePackageType</key>
17
+ <key>CFBundlePackageType</key>
18
- <string>APPL</string>
18
+ <string>APPL</string>
19
- <key>CFBundleShortVersionString</key>
19
+ <key>CFBundleShortVersionString</key>
20
- <string>$(FLUTTER_BUILD_NAME)</string>
20
+ <string>$(FLUTTER_BUILD_NAME)</string>
21
- <key>CFBundleSignature</key>
21
+ <key>CFBundleSignature</key>
22
- <string>????</string>
22
+ <string>????</string>
23
- <key>CFBundleVersion</key>
23
+ <key>CFBundleVersion</key>
24
- <string>$(FLUTTER_BUILD_NUMBER)</string>
24
+ <string>$(FLUTTER_BUILD_NUMBER)</string>
25
- <key>LSRequiresIPhoneOS</key>
25
+ <key>LSRequiresIPhoneOS</key>
26
- <true/>
26
+ <true/>
27
- <key>UILaunchStoryboardName</key>
27
+ <key>UILaunchStoryboardName</key>
28
- <string>LaunchScreen</string>
28
+ <string>LaunchScreen</string>
29
- <key>UIMainStoryboardFile</key>
29
+ <key>UIMainStoryboardFile</key>
30
- <string>Main</string>
30
+ <string>Main</string>
31
- <key>UISupportedInterfaceOrientations</key>
31
+ <key>UISupportedInterfaceOrientations</key>
32
- <array>
32
+ <array>
33
- <string>UIInterfaceOrientationPortrait</string>
33
+ <string>UIInterfaceOrientationPortrait</string>
34
- <string>UIInterfaceOrientationLandscapeLeft</string>
34
+ <string>UIInterfaceOrientationLandscapeLeft</string>
35
- <string>UIInterfaceOrientationLandscapeRight</string>
35
+ <string>UIInterfaceOrientationLandscapeRight</string>
36
- </array>
36
+ </array>
37
- <key>UISupportedInterfaceOrientations~ipad</key>
37
+ <key>UISupportedInterfaceOrientations~ipad</key>
38
- <array>
38
+ <array>
39
- <string>UIInterfaceOrientationPortrait</string>
39
+ <string>UIInterfaceOrientationPortrait</string>
40
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
40
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
41
- <string>UIInterfaceOrientationLandscapeLeft</string>
41
+ <string>UIInterfaceOrientationLandscapeLeft</string>
42
- <string>UIInterfaceOrientationLandscapeRight</string>
42
+ <string>UIInterfaceOrientationLandscapeRight</string>
43
- </array>
43
+ </array>
44
- <key>UIViewControllerBasedStatusBarAppearance</key>
44
+ <key>UIViewControllerBasedStatusBarAppearance</key>
45
- <false/>
45
+ <false/>
46
- <key>CADisableMinimumFrameDurationOnPhone</key>
46
+ <key>CADisableMinimumFrameDurationOnPhone</key>
47
- <true/>
47
+ <true/>
48
- <key>UIApplicationSupportsIndirectInputEvents</key>
48
+ <key>UIApplicationSupportsIndirectInputEvents</key>
49
- <true/>
49
+ <true/>
50
+ <key>UIStatusBarHidden</key>
51
+ <false/>
50
- </dict>
52
+ </dict>
51
53
  </plist>
lib/main.dart CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'package:flutter/material.dart';
2
2
  import 'package:firebase_core/firebase_core.dart';
3
- import 'package:only_bible_app/firebase_options.dart';
3
+ import 'package:only_bible_app/options.dart';
4
4
  import 'package:flutter_persistent_value_notifier/flutter_persistent_value_notifier.dart';
5
5
  import 'package:flutter_native_splash/flutter_native_splash.dart';
6
6
  import 'package:only_bible_app/state.dart';
lib/{firebase_options.dart → options.dart} RENAMED
@@ -8,7 +8,7 @@ import 'package:flutter/foundation.dart'
8
8
  ///
9
9
  /// Example:
10
10
  /// ```dart
11
- /// import 'firebase_options.dart';
11
+ /// import 'options.dart';
12
12
  /// // ...
13
13
  /// await Firebase.initializeApp(
14
14
  /// options: DefaultFirebaseOptions.currentPlatform,
lib/state.dart CHANGED
@@ -1,5 +1,5 @@
1
1
  import 'dart:convert';
2
- import 'dart:io' show Platform;
2
+ import 'package:flutter/foundation.dart' show defaultTargetPlatform, TargetPlatform;
3
3
  import 'package:flutter/services.dart';
4
4
  import 'package:flutter/material.dart';
5
5
  import 'package:flutter_persistent_value_notifier/flutter_persistent_value_notifier.dart';
@@ -45,7 +45,7 @@ final isPlaying = ValueNotifier(false);
45
45
  final fontSizeDelta = ValueNotifier(0);
46
46
 
47
47
  bool isWide(BuildContext context) {
48
- if (Platform.isIOS || Platform.isAndroid) {
48
+ if (defaultTargetPlatform == TargetPlatform.android || defaultTargetPlatform == TargetPlatform.iOS) {
49
49
  return false;
50
50
  }
51
51
  final width = MediaQuery.of(context).size.width;
pubspec.yaml CHANGED
@@ -71,9 +71,4 @@ flutter_launcher_icons:
71
71
 
72
72
  flutter_native_splash:
73
73
  color: "#FFFFFF"
74
- image: assets/images/logo.png
74
+ image: assets/images/logo.png
75
- # The android, ios and web parameters can be used to disable generating a splash screen on a given
76
- # platform.
77
- android: false
78
- ios: false
79
- web: false
web/index.html CHANGED
@@ -1,6 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!DOCTYPE html><html><head>
2
- <html>
3
- <head>
4
2
  <!--
5
3
  If you are serving your web app in a path other than the root, change the
6
4
  href value below to reflect the base path you are serving from.
@@ -27,7 +25,7 @@
27
25
  <link rel="apple-touch-icon" href="icons/Icon-192.png">
28
26
 
29
27
  <!-- Favicon -->
30
- <link rel="icon" type="image/png" href="favicon.png"/>
28
+ <link rel="icon" type="image/png" href="favicon.png">
31
29
 
32
30
  <title>only_bible_app</title>
33
31
  <link rel="manifest" href="manifest.json">
@@ -37,9 +35,83 @@
37
35
  var serviceWorkerVersion = null;
38
36
  </script>
39
37
  <!-- This script adds the flutter initialization JS code -->
40
- <script src="flutter.js" defer></script>
38
+ <script src="flutter.js" defer=""></script>
39
+
40
+
41
+ <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
42
+ <style id="splash-screen-style">
43
+ html {
44
+ height: 100%
45
+ }
46
+
47
+ body {
48
+ margin: 0;
49
+ min-height: 100%;
50
+ background-color: #FFFFFF;
51
+ background-size: 100% 100%;
52
+ }
53
+
54
+ .center {
55
+ margin: 0;
56
+ position: absolute;
57
+ top: 50%;
58
+ left: 50%;
59
+ -ms-transform: translate(-50%, -50%);
60
+ transform: translate(-50%, -50%);
61
+ }
62
+
63
+ .contain {
64
+ display:block;
65
+ width:100%; height:100%;
66
+ object-fit: contain;
67
+ }
68
+
69
+ .stretch {
70
+ display:block;
71
+ width:100%; height:100%;
72
+ }
73
+
74
+ .cover {
75
+ display:block;
76
+ width:100%; height:100%;
77
+ object-fit: cover;
78
+ }
79
+
80
+ .bottom {
81
+ position: absolute;
82
+ bottom: 0;
83
+ left: 50%;
84
+ -ms-transform: translate(-50%, 0);
85
+ transform: translate(-50%, 0);
86
+ }
87
+
88
+ .bottomLeft {
89
+ position: absolute;
90
+ bottom: 0;
91
+ left: 0;
92
+ }
93
+
94
+ .bottomRight {
95
+ position: absolute;
96
+ bottom: 0;
97
+ right: 0;
98
+ }
99
+ </style>
100
+ <script id="splash-screen-script">
101
+ function removeSplashFromWeb() {
102
+ document.getElementById("splash")?.remove();
103
+ document.getElementById("splash-branding")?.remove();
104
+ document.body.style.background = "transparent";
105
+ }
106
+ </script>
41
107
  </head>
42
108
  <body>
109
+ <picture id="splash">
110
+ <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)">
111
+ <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)">
112
+ <img class="center" aria-hidden="true" src="splash/img/light-1x.png" alt="">
113
+ </picture>
114
+
43
115
  <script>
44
116
  window.addEventListener('load', function(ev) {
45
117
  // Download main.dart.js
@@ -55,5 +127,6 @@
55
127
  });
56
128
  });
57
129
  </script>
130
+
131
+
58
- </body>
132
+ </body></html>
59
- </html>
web/splash/img/dark-1x.png ADDED
Binary file
web/splash/img/dark-2x.png ADDED
Binary file
web/splash/img/dark-3x.png ADDED
Binary file
web/splash/img/dark-4x.png ADDED
Binary file
web/splash/img/light-1x.png ADDED
Binary file
web/splash/img/light-2x.png ADDED
Binary file
web/splash/img/light-3x.png ADDED
Binary file
web/splash/img/light-4x.png ADDED
Binary file