|
|
@ -168,6 +168,7 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
_selected.remove(model.id);
|
|
|
|
_selected.remove(model.id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
setState(() {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
));
|
|
|
|
));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -245,8 +246,13 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
).expand(),
|
|
|
|
).expand(),
|
|
|
|
MaterialButton(
|
|
|
|
MaterialButton(
|
|
|
|
|
|
|
|
disabledColor: kDarkSubColor,
|
|
|
|
|
|
|
|
disabledTextColor: ktextSubColor,
|
|
|
|
|
|
|
|
textColor: ktextPrimary,
|
|
|
|
onPressed: _isEdit
|
|
|
|
onPressed: _isEdit
|
|
|
|
? () {
|
|
|
|
? _selected.isEmpty
|
|
|
|
|
|
|
|
? null
|
|
|
|
|
|
|
|
: () {
|
|
|
|
Get.dialog(_showDeletDialog());
|
|
|
|
Get.dialog(_showDeletDialog());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
: () {
|
|
|
|
: () {
|
|
|
@ -255,8 +261,8 @@ class _FixedSubmitPageState extends State<FixedSubmitPage> {
|
|
|
|
: 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,
|
|
|
|