Ver código fonte

[new]调整启屏页根据平台展示对应UI

zk 2 meses atrás
pai
commit
f50f97afa0

BIN
assets/images/icon_splash_title.webp


BIN
assets/images/icon_splash_title_android.webp


BIN
assets/images/icon_splash_title_ios.webp


+ 3 - 2
lib/module/splash/splash_page.dart

@@ -10,7 +10,6 @@ import 'package:location/data/consts/app_config.dart';
 import 'package:location/module/splash/splash_controller.dart';
 import 'package:location/resource/assets.gen.dart';
 
-
 class SplashPage extends BasePage<SplashController> {
   SplashPage({super.key});
 
@@ -38,7 +37,9 @@ class SplashPage extends BasePage<SplashController> {
           padding: EdgeInsets.only(bottom: 40.h),
           child: Align(
               alignment: Alignment.bottomCenter,
-              child: Assets.images.iconSplashTitle.image(width: 167.w)),
+              child: Platform.isAndroid
+                  ? Assets.images.iconSplashTitleAndroid.image(width: 167.w)
+                  : Assets.images.iconSplashTitleIos.image(width: 167.w)),
         )
       ],
     );

+ 4 - 4
lib/resource/assets.gen.dart

@@ -575,9 +575,9 @@ class $AssetsImagesGen {
   AssetGenImage get iconShareTrackDetail =>
       const AssetGenImage('assets/images/icon_share_track_detail.webp');
 
-  /// File path: assets/images/icon_splash_title.webp
-  AssetGenImage get iconSplashTitle =>
-      const AssetGenImage('assets/images/icon_splash_title.webp');
+  /// File path: assets/images/icon_splash_title_android.webp
+  AssetGenImage get iconSplashTitleAndroid =>
+      const AssetGenImage('assets/images/icon_splash_title_android.webp');
 
   /// File path: assets/images/icon_splash_title_ios.webp
   AssetGenImage get iconSplashTitleIos =>
@@ -911,7 +911,7 @@ class $AssetsImagesGen {
         iconSharePhone,
         iconShareStay,
         iconShareTrackDetail,
-        iconSplashTitle,
+        iconSplashTitleAndroid,
         iconSplashTitleIos,
         iconTrackAiInterpretation,
         iconTrackAnalyseRefresh,