From 79cbdb3fa2441b2466a963bc593262317776c045 Mon Sep 17 00:00:00 2001 From: czz <862977248@qq.com> Date: Sat, 16 Aug 2025 10:34:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A2=AB=E5=88=86=E4=BA=AB=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E8=B5=84=E6=96=99=E5=8F=AA=E5=8F=AF=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/langs/en_US.json | 2 +- lib/common/color/appConstants.dart | 4 +- lib/pages/main_bottom/home_page.dart | 2 +- lib/pages/person/update_person_page.dart | 52 +++++++++++++++++++++++- 4 files changed, 54 insertions(+), 6 deletions(-) diff --git a/assets/langs/en_US.json b/assets/langs/en_US.json index 58459bd..54a9797 100644 --- a/assets/langs/en_US.json +++ b/assets/langs/en_US.json @@ -52,7 +52,7 @@ "跳过": "Skip" }, "蓝牙绑定": { - "标题": "Bluetooth Binding", + "标题": "Bluetooth", "扫描": "Scanning Bluetooth devices...", "信号": "Minimum signal strength", "搜索提示": "Search devices", diff --git a/lib/common/color/appConstants.dart b/lib/common/color/appConstants.dart index a19f8b0..19c21cc 100644 --- a/lib/common/color/appConstants.dart +++ b/lib/common/color/appConstants.dart @@ -54,8 +54,8 @@ class AppConstants { //系统参数 //运行打包APP模式 - int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖 - // int ent_type = APPPackageType.TH.code; //1.默认太和 2.欢睡 3.眠花糖 + // int ent_type = APPPackageType.MHT.code; //1.默认太和 2.欢睡 3.眠花糖 + int ent_type = APPPackageType.TH.code; //1.默认太和 2.欢睡 3.眠花糖 int text_length = 8; } diff --git a/lib/pages/main_bottom/home_page.dart b/lib/pages/main_bottom/home_page.dart index ce30537..b0cceb5 100644 --- a/lib/pages/main_bottom/home_page.dart +++ b/lib/pages/main_bottom/home_page.dart @@ -91,7 +91,7 @@ class _HomePageState extends State { ), child: Column( mainAxisSize: MainAxisSize.min, - crossAxisAlignment: CrossAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, children: [ SizedBox(height: 11.rpx), ClickableContainer( diff --git a/lib/pages/person/update_person_page.dart b/lib/pages/person/update_person_page.dart index 534edc4..c125155 100644 --- a/lib/pages/person/update_person_page.dart +++ b/lib/pages/person/update_person_page.dart @@ -101,7 +101,8 @@ class _UpdatePageState extends State { }), ), Visibility( - visible: widget.status == BindType.active.code, + // visible: widget.status == BindType.active.code, + visible: true, child: Positioned( right: 20.rpx, child: CustomCard( @@ -179,7 +180,7 @@ class _UpdatePageState extends State { alignment: AlignmentDirectional(0, 0), child: TextFormField( // controller: _model.textController1, - // focusNode: _model.textFieldFocusNode1, + // focusNode: _model.textFieldFocusNode1, initialValue: personController.name.value, onChanged: (Value) { personController.name.value = Value; @@ -269,6 +270,15 @@ class _UpdatePageState extends State { 0; // gender == 0 时男生部分变灰 return GestureDetector( onTap: () { + if (widget.status == + BindType.share.code) { + TopSlideNotification.show( + context, + text: "被分享用户只能修改用户名称", + textColor: themeController + .currentColor.sc9); + return; + } personController.gender.value = 1; // 点击时将 gender 设置为 1(女生部分被选中) }, @@ -318,6 +328,15 @@ class _UpdatePageState extends State { 1; // gender == 1 时女生部分变灰 return GestureDetector( onTap: () { + if (widget.status == + BindType.share.code) { + TopSlideNotification.show( + context, + text: "被分享用户只能修改用户名称", + textColor: themeController + .currentColor.sc9); + return; + } personController.gender.value = 0; // 点击时将 gender 设置为 0(男生部分被选中) }, @@ -379,6 +398,13 @@ class _UpdatePageState extends State { ), child: InkWell( onTap: () { + if (widget.status == BindType.share.code) { + TopSlideNotification.show(context, + text: "被分享用户只能修改用户名称", + textColor: + themeController.currentColor.sc9); + return; + } FocusScope.of(context) .requestFocus(FocusNode()); Future.delayed(Duration(milliseconds: 250), @@ -433,6 +459,13 @@ class _UpdatePageState extends State { ), child: InkWell( onTap: () { + if (widget.status == BindType.share.code) { + TopSlideNotification.show(context, + text: "被分享用户只能修改用户名称", + textColor: + themeController.currentColor.sc9); + return; + } final currentHeight = personController.height.value; final initialHeight = currentHeight != null @@ -494,6 +527,13 @@ class _UpdatePageState extends State { ), child: InkWell( onTap: () { + if (widget.status == BindType.share.code) { + TopSlideNotification.show(context, + text: "被分享用户只能修改用户名称", + textColor: + themeController.currentColor.sc9); + return; + } FocusScope.of(context) .requestFocus(FocusNode()); Future.delayed( @@ -571,6 +611,14 @@ class _UpdatePageState extends State { label: name, selected: isSelected, onTap: () { + if (widget.status == + BindType.share.code) { + TopSlideNotification.show(context, + text: "被分享用户只能修改用户名称", + textColor: themeController + .currentColor.sc9); + return; + } if (isSelected) { selectedIds.remove(id); } else {