Parcourir la source

fix:优化显示删除好友的显示。

“HeShaoZe” il y a 6 mois
Parent
commit
950f86e133

+ 2 - 1
assets/string/base/string.xml

@@ -126,7 +126,8 @@
     <string name="friend_edit_block_title">不给Ta看</string>
     <string name="blocked_friend">已屏蔽该好友</string>
     <string name="block_friend_off">屏蔽好友已关闭</string>
-    <string name="friend_delete">屏蔽好友</string>
+    <string name="friend_delete">删除好友</string>
+    <string name="block_friends">屏蔽好友</string>
     <string name="kindly_reminder">温馨提示</string>
     <string name="friend_delete_content">
         互删好友后,双方将停止共享位置,清除相关定位记录并屏蔽,是否确认互删

+ 3 - 1
lib/module/friend/setting/friend_setting_page.dart

@@ -1,3 +1,5 @@
+import 'dart:io';
+
 import 'package:animated_toggle_switch/animated_toggle_switch.dart';
 import 'package:flutter/cupertino.dart';
 
@@ -79,7 +81,7 @@ class FriendSettingPage extends BasePage<FriendSettingController> {
                     height: 54.w,
                     decoration: _getSettingCardDecoration(),
                     child: Center(
-                        child: Text(StringName.friendDelete,
+                        child: Text(Platform.isAndroid ? StringName.friendDelete : StringName.blockedFriend,
                             style: TextStyle(
                                 fontSize: 15.sp,
                                 color: '#E1261A'.color,

+ 1 - 1
pubspec.yaml

@@ -174,7 +174,7 @@ dependencies:
 #    path: plugins/map_mapkit_ios
 
   map_amap_ios:
-    path:plugins/map_amap_ios
+    path: plugins/map_amap_ios
   
   ######################地图########################