update delete dialog

hmxc
张萌 4 years ago
parent a12113225a
commit ded21ef0b5

@ -37,7 +37,7 @@ class UserInfoModel {
UserInfoModel.fromJson(Map<String, dynamic> json) { UserInfoModel.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
if (json['imgUrls'] != null) if (json['imgUrls'] != null&&(json['imgUrls'] as List).length!=0)
imgUrl = (json['imgUrls'] as List).first['url']; imgUrl = (json['imgUrls'] as List).first['url'];
name = json['name']; name = json['name'];
nickName = json['nickName']; nickName = json['nickName'];

@ -147,17 +147,17 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
Widget _showDeletDialog() { Widget _showDeletDialog() {
return CupertinoAlertDialog( return CupertinoAlertDialog(
title: '删除订单'.text.black.size(34.sp).make(), title: '删除订单'.text.black.size(34.sp).isIntrinsic.make(),
content: '您确定要删除订单吗?'.text.black.size(28.sp).make(), content: '您确定要删除订单吗?'.text.black.size(28.sp).isIntrinsic.make(),
actions: [ actions: [
CupertinoDialogAction( CupertinoDialogAction(
child: '先等等'.text.black.size(34.sp).make(), child: '先等等'.text.black.size(34.sp).isIntrinsic.make(),
onPressed: () { onPressed: () {
Get.back(); Get.back();
}, },
), ),
CupertinoDialogAction( CupertinoDialogAction(
child: '删除订单'.text.color(Color(0xFFFF8200)).size(34.sp).bold.make(), child: '删除订单'.text.color(Color(0xFFFF8200)).size(34.sp).bold.isIntrinsic.make(),
onPressed: () { onPressed: () {
ManagerFunc.reportRepairDelete(_selected); ManagerFunc.reportRepairDelete(_selected);
Get.back(); Get.back();

Loading…
Cancel
Save