From 6bb26ff433f5adeaf1fbfaaf908e4e105f58a6d5 Mon Sep 17 00:00:00 2001 From: wyl2022 <2373073266@qq.com> Date: Mon, 27 Jun 2022 17:53:05 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/model/user/blacklist_model.dart | 7 +++++-- lib/model/user/blacklist_model.g.dart | 1 + .../blacklist_page/blacklist_page.dart | 17 +++++++++-------- .../community_views/widgets/chat_card.dart | 9 ++++----- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/lib/model/user/blacklist_model.dart b/lib/model/user/blacklist_model.dart index f1419f68..709d15bf 100644 --- a/lib/model/user/blacklist_model.dart +++ b/lib/model/user/blacklist_model.dart @@ -9,14 +9,16 @@ class BlacklistModel extends Equatable { final int id; final List imgList; final String? name; + final String nickName; factory BlacklistModel.fromJson(Map json) => _$BlacklistModelFromJson(json); - BlacklistModel({ + const BlacklistModel({ required this.id, required this.imgList, - required this.name, + this.name, + required this.nickName, }); @override @@ -24,5 +26,6 @@ class BlacklistModel extends Equatable { id, imgList, name, + nickName, ]; } diff --git a/lib/model/user/blacklist_model.g.dart b/lib/model/user/blacklist_model.g.dart index fe41c88e..c4fa615e 100644 --- a/lib/model/user/blacklist_model.g.dart +++ b/lib/model/user/blacklist_model.g.dart @@ -13,4 +13,5 @@ BlacklistModel _$BlacklistModelFromJson(Map json) => .map((e) => ImgModel.fromJson(e as Map)) .toList(), name: json['name'] as String?, + nickName: json['nickName'] as String, ); diff --git a/lib/pages/setting_page/blacklist_page/blacklist_page.dart b/lib/pages/setting_page/blacklist_page/blacklist_page.dart index 985ca960..d1cfea1e 100644 --- a/lib/pages/setting_page/blacklist_page/blacklist_page.dart +++ b/lib/pages/setting_page/blacklist_page/blacklist_page.dart @@ -102,6 +102,7 @@ class _blackListPageState extends State { TextStyle(fontSize: 24.sp, color: Color(0xA6000000))), ])), ), + 20.hb, Expanded( child: // ListView.builder( @@ -192,7 +193,7 @@ class _blackListPageState extends State { // ) , title: Text( - model.name == null ? '' : _getText(model.name!), + model.nickName ?? '', style: TextStyle(fontSize: 28.sp, color: ktextSubColor), ), trailing: GestureDetector( @@ -240,13 +241,13 @@ class _blackListPageState extends State { ); } - _getText(String name) { - String name2 = name.substring(0, 1); - for (var i = 0; i < name.length - 1; i++) { - name2 += '*'; - } - return name2; - } +// _getText(String name) { +// String name2 = name.substring(0, 1); +// for (var i = 0; i < name.length - 1; i++) { +// name2 += '*'; +// } +// return name2; +// } // _blackList(BlacklistModel model) { // return ListTile( // leading: Container( diff --git a/lib/ui/community/community_views/widgets/chat_card.dart b/lib/ui/community/community_views/widgets/chat_card.dart index c59f7127..e414b185 100644 --- a/lib/ui/community/community_views/widgets/chat_card.dart +++ b/lib/ui/community/community_views/widgets/chat_card.dart @@ -272,11 +272,10 @@ class _ChatCardState extends State { .make(), onPressed: () //=> Get.back(result: true), async { - var isShielding = - await BlackListFunc.Block(widget.model.id); - if (isShielding) { - Get.back(); - } + //var isShielding = + await BlackListFunc.Block( + widget.model.createId); + Get.back(); }, ), ], From 01de91e164d465ff036da2c0cd01c670250a9bb9 Mon Sep 17 00:00:00 2001 From: wyl2022 <2373073266@qq.com> Date: Mon, 27 Jun 2022 17:58:45 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 05ce137c..28f7bf0a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: aku_new_community description: A new Flutter project. publish_to: "none" -version: 1.8.17-dev+58 +version: 1.8.18-dev+59 environment: sdk: ">=2.17.0 <3.0.0" From 9786ab43042f51be485bb86e5e9b1694f52f8c15 Mon Sep 17 00:00:00 2001 From: wylyl22 <2373073266@qq.com> Date: Wed, 29 Jun 2022 11:44:02 +0800 Subject: [PATCH 3/3] wyl --- ios/Podfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index e727127c..293b4212 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -188,4 +188,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: fe0e1ee7f3d1f7d00b11b474b62dd62134535aea -COCOAPODS: 1.11.3 +COCOAPODS: 1.11.2