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) ) ], ),