Browse Source

[New]ios隐藏星座分析相关

zhipeng 5 months ago
parent
commit
22fd4d98c9

BIN
assets/images/icon_keyboard_love_Index_ios.webp


+ 9 - 8
lib/module/keyboard/keyboard_view.dart

@@ -1,6 +1,6 @@
+import 'dart:io';
+
 import 'package:auto_size_text/auto_size_text.dart';
 import 'package:auto_size_text/auto_size_text.dart';
-import 'package:cached_network_image/cached_network_image.dart';
-import 'package:flutter/cupertino.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter/material.dart';
 import 'package:flutter_screenutil/flutter_screenutil.dart';
 import 'package:flutter_screenutil/flutter_screenutil.dart';
 import 'package:get/get.dart';
 import 'package:get/get.dart';
@@ -166,7 +166,7 @@ class KeyBoardView extends BaseView<KeyBoardController> {
   Widget _buildLoveIndexCard() {
   Widget _buildLoveIndexCard() {
     return GestureDetector(
     return GestureDetector(
       onTap: () {
       onTap: () {
-        controller.clickZodiacLoveIntimacy();
+        Platform.isIOS ? {} : controller.clickZodiacLoveIntimacy();
       },
       },
       child: Stack(
       child: Stack(
         clipBehavior: Clip.none,
         clipBehavior: Clip.none,
@@ -190,10 +190,10 @@ class KeyBoardView extends BaseView<KeyBoardController> {
             ),
             ),
             child: Row(
             child: Row(
               children: [
               children: [
-                Assets.images.iconKeyboardLoveIndex.image(
-                  width: 72.w,
-                  height: 23.h,
-                ),
+                (Platform.isIOS
+                        ? Assets.images.iconKeyboardLoveIndexIos
+                        : Assets.images.iconKeyboardLoveIndex)
+                    .image(width: 72.w, height: 23.h),
                 SizedBox(width: 10.w),
                 SizedBox(width: 10.w),
                 Expanded(
                 Expanded(
                   child: Obx(() {
                   child: Obx(() {
@@ -395,7 +395,8 @@ class KeyBoardView extends BaseView<KeyBoardController> {
                                 ? controller.homeInfo!.intimacy! / 100
                                 ? controller.homeInfo!.intimacy! / 100
                                 : 0,
                                 : 0,
                         width: 88.w,
                         width: 88.w,
-                        onControllerCreated: (ctrl) => controller.heartController = ctrl,
+                        onControllerCreated:
+                            (ctrl) => controller.heartController = ctrl,
                       ),
                       ),
                     ),
                     ),
 
 

+ 5 - 0
lib/resource/assets.gen.dart

@@ -807,6 +807,10 @@ class $AssetsImagesGen {
   AssetGenImage get iconKeyboardLoveIndex =>
   AssetGenImage get iconKeyboardLoveIndex =>
       const AssetGenImage('assets/images/icon_keyboard_love_Index.webp');
       const AssetGenImage('assets/images/icon_keyboard_love_Index.webp');
 
 
+  /// File path: assets/images/icon_keyboard_love_Index_ios.webp
+  AssetGenImage get iconKeyboardLoveIndexIos =>
+      const AssetGenImage('assets/images/icon_keyboard_love_Index_ios.webp');
+
   /// File path: assets/images/icon_keyboard_love_logo.webp
   /// File path: assets/images/icon_keyboard_love_logo.webp
   AssetGenImage get iconKeyboardLoveLogo =>
   AssetGenImage get iconKeyboardLoveLogo =>
       const AssetGenImage('assets/images/icon_keyboard_love_logo.webp');
       const AssetGenImage('assets/images/icon_keyboard_love_logo.webp');
@@ -1522,6 +1526,7 @@ class $AssetsImagesGen {
     iconKeyboardGuideOverlay1,
     iconKeyboardGuideOverlay1,
     iconKeyboardHitPlay,
     iconKeyboardHitPlay,
     iconKeyboardLoveIndex,
     iconKeyboardLoveIndex,
+    iconKeyboardLoveIndexIos,
     iconKeyboardLoveLogo,
     iconKeyboardLoveLogo,
     iconKeyboardManageCustom,
     iconKeyboardManageCustom,
     iconKeyboardManageFavorite,
     iconKeyboardManageFavorite,

+ 2 - 2
pubspec.yaml

@@ -3,7 +3,7 @@ description: "A new Flutter project."
 
 
 publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 publish_to: 'none' # Remove this line if you wish to publish to pub.dev
 
 
-version: 1.0.6+106
+version: 1.0.7+107
 
 
 environment:
 environment:
   sdk: ^3.7.0
   sdk: ^3.7.0
@@ -172,7 +172,7 @@ dev_dependencies:
   #Retrofit代码生成器
   #Retrofit代码生成器
   retrofit_generator: '>=8.0.0 <10.0.0' # for Dart 3.3 use ^9.0.0
   retrofit_generator: '>=8.0.0 <10.0.0' # for Dart 3.3 use ^9.0.0
   #json序列化
   #json序列化
-  json_serializable: 6.9.4
+  json_serializable: 6.9.5
   #  代码生成
   #  代码生成
   build_runner: 2.4.15
   build_runner: 2.4.15