Showing
38 changed files
with
134 additions
and
83 deletions
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | -<!-- Modify this file to customize your launch splash screen --> | ||
| 3 | <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> |
| 4 | - <item android:drawable="?android:colorBackground" /> | 3 | + <item> |
| 5 | - | 4 | + <bitmap android:gravity="fill" android:src="@drawable/background"/> |
| 6 | - <!-- You can insert your own image assets here --> | 5 | + </item> |
| 7 | - <!-- <item> | 6 | +</layer-list> |
| 8 | - <bitmap | ||
| 9 | - android:gravity="center" | ||
| 10 | - android:src="@mipmap/launch_image" /> | ||
| 11 | - </item> --> | ||
| 12 | -</layer-list> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | -<!-- Modify this file to customize your launch splash screen --> | ||
| 3 | <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> |
| 4 | - <item android:drawable="@android:color/white" /> | 3 | + <item> |
| 5 | - | 4 | + <bitmap android:gravity="fill" android:src="@drawable/background"/> |
| 6 | - <!-- You can insert your own image assets here --> | 5 | + </item> |
| 7 | - <!-- <item> | 6 | +</layer-list> |
| 8 | - <bitmap | ||
| 9 | - android:gravity="center" | ||
| 10 | - android:src="@mipmap/launch_image" /> | ||
| 11 | - </item> --> | ||
| 12 | -</layer-list> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -5,6 +5,7 @@ | ... | @@ -5,6 +5,7 @@ |
| 5 | <!-- Show a splash screen on the activity. Automatically removed when | 5 | <!-- Show a splash screen on the activity. Automatically removed when |
| 6 | Flutter draws its first frame --> | 6 | Flutter draws its first frame --> |
| 7 | <item name="android:windowBackground">@drawable/launch_background</item> | 7 | <item name="android:windowBackground">@drawable/launch_background</item> |
| 8 | + <item name="android:windowFullscreen">false</item> | ||
| 8 | </style> | 9 | </style> |
| 9 | <!-- Theme applied to the Android Window as soon as the process has started. | 10 | <!-- Theme applied to the Android Window as soon as the process has started. |
| 10 | This theme determines the color of the Android Window while your | 11 | This theme determines the color of the Android Window while your |
| ... | @@ -15,4 +16,4 @@ | ... | @@ -15,4 +16,4 @@ |
| 15 | <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"> | 16 | <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"> |
| 16 | <item name="android:windowBackground">?android:colorBackground</item> | 17 | <item name="android:windowBackground">?android:colorBackground</item> |
| 17 | </style> | 18 | </style> |
| 18 | -</resources> | 19 | +</resources> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
assets/images/app_start_1.webp
deleted
100644 → 0
No preview for this file type
assets/images/app_start_2.webp
deleted
100644 → 0
No preview for this file type
assets/images/app_start_3.webp
deleted
100644 → 0
No preview for this file type
assets/images/splash.png
0 → 100644
72 KB
| ... | @@ -545,4 +545,4 @@ | ... | @@ -545,4 +545,4 @@ |
| 545 | /* End XCConfigurationList section */ | 545 | /* End XCConfigurationList section */ |
| 546 | }; | 546 | }; |
| 547 | rootObject = 97C146E61CF9000F007C117D /* Project object */; | 547 | rootObject = 97C146E61CF9000F007C117D /* Project object */; |
| 548 | -} | 548 | +} |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | { | 1 | { |
| 2 | "images" : [ | 2 | "images" : [ |
| 3 | { | 3 | { |
| 4 | - "idiom" : "universal", | ||
| 5 | "filename" : "LaunchImage.png", | 4 | "filename" : "LaunchImage.png", |
| 5 | + "idiom" : "universal", | ||
| 6 | "scale" : "1x" | 6 | "scale" : "1x" |
| 7 | }, | 7 | }, |
| 8 | { | 8 | { |
| 9 | - "idiom" : "universal", | ||
| 10 | "filename" : "LaunchImage@2x.png", | 9 | "filename" : "LaunchImage@2x.png", |
| 10 | + "idiom" : "universal", | ||
| 11 | "scale" : "2x" | 11 | "scale" : "2x" |
| 12 | }, | 12 | }, |
| 13 | { | 13 | { |
| 14 | - "idiom" : "universal", | ||
| 15 | "filename" : "LaunchImage@3x.png", | 14 | "filename" : "LaunchImage@3x.png", |
| 15 | + "idiom" : "universal", | ||
| 16 | "scale" : "3x" | 16 | "scale" : "3x" |
| 17 | } | 17 | } |
| 18 | ], | 18 | ], |
| 19 | "info" : { | 19 | "info" : { |
| 20 | - "version" : 1, | 20 | + "author" : "xcode", |
| 21 | - "author" : "xcode" | 21 | + "version" : 1 |
| 22 | } | 22 | } |
| 23 | } | 23 | } | ... | ... |
| ... | @@ -16,13 +16,19 @@ | ... | @@ -16,13 +16,19 @@ |
| 16 | <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | 16 | <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> |
| 17 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | 17 | <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
| 18 | <subviews> | 18 | <subviews> |
| 19 | - <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4"> | 19 | + <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" image="LaunchBackground" translatesAutoresizingMaskIntoConstraints="NO" id="tWc-Dq-wcI"/> |
| 20 | - </imageView> | 20 | + <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4"></imageView> |
| 21 | </subviews> | 21 | </subviews> |
| 22 | <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | 22 | <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
| 23 | <constraints> | 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="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/> | 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"/> | ||
| 26 | </constraints> | 32 | </constraints> |
| 27 | </view> | 33 | </view> |
| 28 | </viewController> | 34 | </viewController> |
| ... | @@ -33,5 +39,6 @@ | ... | @@ -33,5 +39,6 @@ |
| 33 | </scenes> | 39 | </scenes> |
| 34 | <resources> | 40 | <resources> |
| 35 | <image name="LaunchImage" width="168" height="185"/> | 41 | <image name="LaunchImage" width="168" height="185"/> |
| 42 | + <image name="LaunchBackground" width="1" height="1"/> | ||
| 36 | </resources> | 43 | </resources> |
| 37 | -</document> | 44 | +</document> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | <plist version="1.0"> | 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>CFBundleExecutable</key> | 7 | + <key>CFBundleExecutable</key> |
| 8 | - <string>$(EXECUTABLE_NAME)</string> | 8 | + <string>$(EXECUTABLE_NAME)</string> |
| 9 | - <key>CFBundleIdentifier</key> | 9 | + <key>CFBundleIdentifier</key> |
| 10 | - <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | 10 | + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
| 11 | - <key>CFBundleInfoDictionaryVersion</key> | 11 | + <key>CFBundleInfoDictionaryVersion</key> |
| 12 | - <string>6.0</string> | 12 | + <string>6.0</string> |
| 13 | - <key>CFBundleName</key> | 13 | + <key>CFBundleName</key> |
| 14 | - <string>one_poem</string> | 14 | + <string>one_poem</string> |
| 15 | - <key>CFBundlePackageType</key> | 15 | + <key>CFBundlePackageType</key> |
| 16 | - <string>APPL</string> | 16 | + <string>APPL</string> |
| 17 | - <key>CFBundleShortVersionString</key> | 17 | + <key>CFBundleShortVersionString</key> |
| 18 | - <string>$(FLUTTER_BUILD_NAME)</string> | 18 | + <string>$(FLUTTER_BUILD_NAME)</string> |
| 19 | - <key>CFBundleSignature</key> | 19 | + <key>CFBundleSignature</key> |
| 20 | - <string>????</string> | 20 | + <string>????</string> |
| 21 | - <key>CFBundleVersion</key> | 21 | + <key>CFBundleVersion</key> |
| 22 | - <string>$(FLUTTER_BUILD_NUMBER)</string> | 22 | + <string>$(FLUTTER_BUILD_NUMBER)</string> |
| 23 | - <key>LSRequiresIPhoneOS</key> | 23 | + <key>LSRequiresIPhoneOS</key> |
| 24 | - <true/> | 24 | + <true/> |
| 25 | - <key>UILaunchStoryboardName</key> | 25 | + <key>UILaunchStoryboardName</key> |
| 26 | - <string>LaunchScreen</string> | 26 | + <string>LaunchScreen</string> |
| 27 | - <key>UIMainStoryboardFile</key> | 27 | + <key>UIMainStoryboardFile</key> |
| 28 | - <string>Main</string> | 28 | + <string>Main</string> |
| 29 | - <key>UISupportedInterfaceOrientations</key> | 29 | + <key>UISupportedInterfaceOrientations</key> |
| 30 | - <array> | 30 | + <array> |
| 31 | - <string>UIInterfaceOrientationPortrait</string> | 31 | + <string>UIInterfaceOrientationPortrait</string> |
| 32 | - <string>UIInterfaceOrientationLandscapeLeft</string> | 32 | + <string>UIInterfaceOrientationLandscapeLeft</string> |
| 33 | - <string>UIInterfaceOrientationLandscapeRight</string> | 33 | + <string>UIInterfaceOrientationLandscapeRight</string> |
| 34 | - </array> | 34 | + </array> |
| 35 | - <key>UISupportedInterfaceOrientations~ipad</key> | 35 | + <key>UISupportedInterfaceOrientations~ipad</key> |
| 36 | - <array> | 36 | + <array> |
| 37 | - <string>UIInterfaceOrientationPortrait</string> | 37 | + <string>UIInterfaceOrientationPortrait</string> |
| 38 | - <string>UIInterfaceOrientationPortraitUpsideDown</string> | 38 | + <string>UIInterfaceOrientationPortraitUpsideDown</string> |
| 39 | - <string>UIInterfaceOrientationLandscapeLeft</string> | 39 | + <string>UIInterfaceOrientationLandscapeLeft</string> |
| 40 | - <string>UIInterfaceOrientationLandscapeRight</string> | 40 | + <string>UIInterfaceOrientationLandscapeRight</string> |
| 41 | - </array> | 41 | + </array> |
| 42 | - <key>UIViewControllerBasedStatusBarAppearance</key> | 42 | + <key>UIViewControllerBasedStatusBarAppearance</key> |
| 43 | - <false/> | 43 | + <false/> |
| 44 | - <key>NSMicrophoneUsageDescription</key> | 44 | + <key>NSMicrophoneUsageDescription</key> |
| 45 | - <string>打开话筒</string> | 45 | + <string>打开话筒</string> |
| 46 | - <key>NSAppTransportSecurity</key> | 46 | + <key>NSAppTransportSecurity</key> |
| 47 | - <dict> | 47 | + <dict> |
| 48 | - <key>NSAllowsArbitraryLoads</key> | 48 | + <key>NSAllowsArbitraryLoads</key> |
| 49 | - <true/> | 49 | + <true/> |
| 50 | - </dict> | 50 | + </dict> |
| 51 | -</dict> | 51 | + <key>UIStatusBarHidden</key> |
| 52 | -</plist> | 52 | + <false/> |
| 53 | + </dict> | ||
| 54 | +</plist> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -39,7 +39,7 @@ class _SplashPageState extends State<SplashPage> { | ... | @@ -39,7 +39,7 @@ class _SplashPageState extends State<SplashPage> { |
| 39 | /// 预先缓存图片,避免直接使用时因为首次加载造成闪动 | 39 | /// 预先缓存图片,避免直接使用时因为首次加载造成闪动 |
| 40 | void _precacheImage(String image) { | 40 | void _precacheImage(String image) { |
| 41 | precacheImage( | 41 | precacheImage( |
| 42 | - ImageUtils.getAssetImage(image, format: ImageFormat.webp), | 42 | + ImageUtils.getAssetImage(image, format: ImageFormat.png), |
| 43 | context); | 43 | context); |
| 44 | } | 44 | } |
| 45 | 45 | ... | ... |
| ... | @@ -354,6 +354,13 @@ packages: | ... | @@ -354,6 +354,13 @@ packages: |
| 354 | description: flutter | 354 | description: flutter |
| 355 | source: sdk | 355 | source: sdk |
| 356 | version: "0.0.0" | 356 | version: "0.0.0" |
| 357 | + flutter_launcher_icons: | ||
| 358 | + dependency: "direct dev" | ||
| 359 | + description: | ||
| 360 | + name: flutter_launcher_icons | ||
| 361 | + url: "https://pub.dartlang.org" | ||
| 362 | + source: hosted | ||
| 363 | + version: "0.9.2" | ||
| 357 | flutter_lints: | 364 | flutter_lints: |
| 358 | dependency: "direct dev" | 365 | dependency: "direct dev" |
| 359 | description: | 366 | description: |
| ... | @@ -366,6 +373,13 @@ packages: | ... | @@ -366,6 +373,13 @@ packages: |
| 366 | description: flutter | 373 | description: flutter |
| 367 | source: sdk | 374 | source: sdk |
| 368 | version: "0.0.0" | 375 | version: "0.0.0" |
| 376 | + flutter_native_splash: | ||
| 377 | + dependency: "direct dev" | ||
| 378 | + description: | ||
| 379 | + name: flutter_native_splash | ||
| 380 | + url: "https://pub.dartlang.org" | ||
| 381 | + source: hosted | ||
| 382 | + version: "1.3.2" | ||
| 369 | flutter_plugin_android_lifecycle: | 383 | flutter_plugin_android_lifecycle: |
| 370 | dependency: transitive | 384 | dependency: transitive |
| 371 | description: | 385 | description: |
| ... | @@ -465,6 +479,13 @@ packages: | ... | @@ -465,6 +479,13 @@ packages: |
| 465 | url: "https://pub.dartlang.org" | 479 | url: "https://pub.dartlang.org" |
| 466 | source: hosted | 480 | source: hosted |
| 467 | version: "4.0.0" | 481 | version: "4.0.0" |
| 482 | + image: | ||
| 483 | + dependency: transitive | ||
| 484 | + description: | ||
| 485 | + name: image | ||
| 486 | + url: "https://pub.dartlang.org" | ||
| 487 | + source: hosted | ||
| 488 | + version: "3.1.0" | ||
| 468 | image_picker: | 489 | image_picker: |
| 469 | dependency: "direct main" | 490 | dependency: "direct main" |
| 470 | description: | 491 | description: |
| ... | @@ -666,6 +687,13 @@ packages: | ... | @@ -666,6 +687,13 @@ packages: |
| 666 | url: "https://pub.dartlang.org" | 687 | url: "https://pub.dartlang.org" |
| 667 | source: hosted | 688 | source: hosted |
| 668 | version: "1.11.1" | 689 | version: "1.11.1" |
| 690 | + petitparser: | ||
| 691 | + dependency: transitive | ||
| 692 | + description: | ||
| 693 | + name: petitparser | ||
| 694 | + url: "https://pub.dartlang.org" | ||
| 695 | + source: hosted | ||
| 696 | + version: "4.4.0" | ||
| 669 | platform: | 697 | platform: |
| 670 | dependency: transitive | 698 | dependency: transitive |
| 671 | description: | 699 | description: |
| ... | @@ -1007,6 +1035,13 @@ packages: | ... | @@ -1007,6 +1035,13 @@ packages: |
| 1007 | url: "https://pub.dartlang.org" | 1035 | url: "https://pub.dartlang.org" |
| 1008 | source: hosted | 1036 | source: hosted |
| 1009 | version: "1.3.0" | 1037 | version: "1.3.0" |
| 1038 | + universal_io: | ||
| 1039 | + dependency: transitive | ||
| 1040 | + description: | ||
| 1041 | + name: universal_io | ||
| 1042 | + url: "https://pub.dartlang.org" | ||
| 1043 | + source: hosted | ||
| 1044 | + version: "2.0.4" | ||
| 1010 | url_launcher: | 1045 | url_launcher: |
| 1011 | dependency: "direct main" | 1046 | dependency: "direct main" |
| 1012 | description: | 1047 | description: |
| ... | @@ -1196,6 +1231,13 @@ packages: | ... | @@ -1196,6 +1231,13 @@ packages: |
| 1196 | url: "https://pub.dartlang.org" | 1231 | url: "https://pub.dartlang.org" |
| 1197 | source: hosted | 1232 | source: hosted |
| 1198 | version: "0.2.0" | 1233 | version: "0.2.0" |
| 1234 | + xml: | ||
| 1235 | + dependency: transitive | ||
| 1236 | + description: | ||
| 1237 | + name: xml | ||
| 1238 | + url: "https://pub.dartlang.org" | ||
| 1239 | + source: hosted | ||
| 1240 | + version: "5.3.1" | ||
| 1199 | yaml: | 1241 | yaml: |
| 1200 | dependency: transitive | 1242 | dependency: transitive |
| 1201 | description: | 1243 | description: | ... | ... |
| ... | @@ -122,6 +122,9 @@ dev_dependencies: | ... | @@ -122,6 +122,9 @@ dev_dependencies: |
| 122 | json_serializable: ^6.1.3 | 122 | json_serializable: ^6.1.3 |
| 123 | build_runner: ^2.1.7 | 123 | build_runner: ^2.1.7 |
| 124 | 124 | ||
| 125 | + flutter_launcher_icons: ^0.9.2 | ||
| 126 | + flutter_native_splash: ^1.3.2 | ||
| 127 | + | ||
| 125 | # For information on the generic Dart part of this file, see the | 128 | # For information on the generic Dart part of this file, see the |
| 126 | # following page: https://dart.dev/tools/pub/pubspec | 129 | # following page: https://dart.dev/tools/pub/pubspec |
| 127 | 130 | ||
| ... | @@ -190,4 +193,12 @@ flutter: | ... | @@ -190,4 +193,12 @@ flutter: |
| 190 | fonts: | 193 | fonts: |
| 191 | - asset: assets/fonts/ZhiMangXing-Regular.ttf | 194 | - asset: assets/fonts/ZhiMangXing-Regular.ttf |
| 192 | flutter_intl: | 195 | flutter_intl: |
| 193 | - enabled: true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 196 | + enabled: true | ||
| 197 | + | ||
| 198 | +flutter_icons: | ||
| 199 | + image_path: 'assets/images/logo.png' | ||
| 200 | + android: true | ||
| 201 | + ios: true | ||
| 202 | + | ||
| 203 | +flutter_native_splash: | ||
| 204 | + background_image: "assets/images/splash.png" | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or login to post a comment