From 20a628e5d57fb7b24b91f96565677b8d36f1e23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AD=90=E8=B4=A4?= Date: Thu, 18 Dec 2025 17:20:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4local?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/mine/edit_info_page.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/pages/mine/edit_info_page.dart b/lib/pages/mine/edit_info_page.dart index c3a9821..666f479 100644 --- a/lib/pages/mine/edit_info_page.dart +++ b/lib/pages/mine/edit_info_page.dart @@ -461,7 +461,7 @@ class _EditInfoPageState extends State { fontSize: 13.w, fontWeight: FontWeight.w500 ), - ),), + ), hideArrow: true,), Container( margin: EdgeInsets.only(bottom: 3.w), decoration: BoxDecoration( @@ -558,12 +558,15 @@ class _EditInfoPageState extends State { Icon( Icons.keyboard_arrow_right, size: 13.w, - color: const Color.fromRGBO(191, 191, 191, 1) + color: Color.fromRGBO(191, 191, 191, (controller.userData.value?.identityCard != null && controller.userData.value?.identityCard != "") ? 0 : 1) ) ], ) ], ).onTap((){ + if(controller.userData.value?.identityCard != null && controller.userData.value?.identityCard != ""){ + return; + } _showDatePicker(controller); }), ], @@ -1176,7 +1179,8 @@ class SetItem extends StatefulWidget { final String label; final bool showRequired; final Widget child; - const SetItem({super.key, required this.label, this.showRequired = true, required this.child}); + final bool hideArrow; + const SetItem({super.key, required this.label, this.showRequired = true, required this.child, this.hideArrow = false}); @override State createState() => _SetItemState(); @@ -1229,7 +1233,7 @@ class _SetItemState extends State { Icon( Icons.keyboard_arrow_right, size: 13.w, - color: const Color.fromRGBO(191, 191, 191, 1) + color: Color.fromRGBO(191, 191, 191, widget.hideArrow ? 0 : 1) ) ], ),