update carton form ,info and filter
This commit is contained in:
@@ -82,6 +82,9 @@ class _MixCartonEditorState extends State<MixCartonEditor> {
|
||||
_cartonSizeType = packageCarton;
|
||||
} else {
|
||||
_cartonSizeType = customCarton;
|
||||
_length = widget.carton.length.toDouble();
|
||||
_width = widget.carton.width.toDouble();
|
||||
_height = widget.carton.height.toDouble();
|
||||
}
|
||||
|
||||
var s = await context
|
||||
@@ -269,7 +272,7 @@ class _MixCartonEditorState extends State<MixCartonEditor> {
|
||||
width: width,
|
||||
height: height,
|
||||
cartons: _cartons);
|
||||
await context.read<CartonModel>().updateCarton(carton);
|
||||
await context.read<CartonModel>().updateMixCarton(carton);
|
||||
Navigator.pop(context, true);
|
||||
} catch (e) {
|
||||
showMsgDialog(context, "Error", e.toString());
|
||||
|
||||
Reference in New Issue
Block a user