|
|
@ -168,6 +168,7 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
_selected.remove(model.id);
|
|
|
|
_selected.remove(model.id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -245,18 +246,23 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
).expand(),
|
|
|
|
).expand(),
|
|
|
|
MaterialButton(
|
|
|
|
MaterialButton(
|
|
|
|
|
|
|
|
disabledColor: kDarkSubColor,
|
|
|
|
|
|
|
|
disabledTextColor: ktextSubColor,
|
|
|
|
|
|
|
|
textColor: ktextPrimary,
|
|
|
|
onPressed: _isEdit
|
|
|
|
onPressed: _isEdit
|
|
|
|
? () {
|
|
|
|
? _selected.isEmpty
|
|
|
|
Get.dialog(_showDeletDialog());
|
|
|
|
? null
|
|
|
|
}
|
|
|
|
: () {
|
|
|
|
|
|
|
|
Get.dialog(_showDeletDialog());
|
|
|
|
|
|
|
|
}
|
|
|
|
: () {
|
|
|
|
: () {
|
|
|
|
userProvider.isLogin
|
|
|
|
userProvider.isLogin
|
|
|
|
? AddFixedSubmitPage().to()
|
|
|
|
? AddFixedSubmitPage().to()
|
|
|
|
: BotToast.showText(text: '请先登录!');
|
|
|
|
: BotToast.showText(text: '请先登录!');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: _isEdit
|
|
|
|
child: _isEdit
|
|
|
|
? '删除订单'.text.bold.color(ktextPrimary).size(32.sp).make()
|
|
|
|
? '删除订单'.text.bold.size(32.sp).make()
|
|
|
|
: '新增'.text.bold.color(ktextPrimary).size(32.sp).make(),
|
|
|
|
: '新增'.text.bold.size(32.sp).make(),
|
|
|
|
minWidth: double.infinity,
|
|
|
|
minWidth: double.infinity,
|
|
|
|
height: 98.w,
|
|
|
|
height: 98.w,
|
|
|
|
elevation: 0,
|
|
|
|
elevation: 0,
|
|
|
|