Browse Source

修改默认local

ios
王子贤 3 months ago
parent
commit
20a628e5d5
1 changed files with 8 additions and 4 deletions
  1. 12
      lib/pages/mine/edit_info_page.dart

12
lib/pages/mine/edit_info_page.dart

@ -461,7 +461,7 @@ class _EditInfoPageState extends State<EditInfoPage> {
fontSize: 13.w, fontSize: 13.w,
fontWeight: FontWeight.w500 fontWeight: FontWeight.w500
), ),
),),
), hideArrow: true,),
Container( Container(
margin: EdgeInsets.only(bottom: 3.w), margin: EdgeInsets.only(bottom: 3.w),
decoration: BoxDecoration( decoration: BoxDecoration(
@ -558,12 +558,15 @@ class _EditInfoPageState extends State<EditInfoPage> {
Icon( Icon(
Icons.keyboard_arrow_right, Icons.keyboard_arrow_right,
size: 13.w, 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((){ ).onTap((){
if(controller.userData.value?.identityCard != null && controller.userData.value?.identityCard != ""){
return;
}
_showDatePicker(controller); _showDatePicker(controller);
}), }),
], ],
@ -1176,7 +1179,8 @@ class SetItem extends StatefulWidget {
final String label; final String label;
final bool showRequired; final bool showRequired;
final Widget child; 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 @override
State<SetItem> createState() => _SetItemState(); State<SetItem> createState() => _SetItemState();
@ -1229,7 +1233,7 @@ class _SetItemState extends State<SetItem> {
Icon( Icon(
Icons.keyboard_arrow_right, Icons.keyboard_arrow_right,
size: 13.w, size: 13.w,
color: const Color.fromRGBO(191, 191, 191, 1)
color: Color.fromRGBO(191, 191, 191, widget.hideArrow ? 0 : 1)
) )
], ],
), ),

Loading…
Cancel
Save