fix length input
This commit is contained in:
@@ -426,17 +426,17 @@ class _CartonEditorState extends State<CartonEditor> {
|
||||
final lengthBox = LengthPicker(
|
||||
controller: _lengthController,
|
||||
lableKey: "box.length",
|
||||
isReadOnly: true,
|
||||
isReadOnly: false,
|
||||
);
|
||||
final widthBox = LengthPicker(
|
||||
controller: _widthController,
|
||||
lableKey: "box.width",
|
||||
isReadOnly: true,
|
||||
isReadOnly: false,
|
||||
);
|
||||
final heightBox = LengthPicker(
|
||||
controller: _heightController,
|
||||
lableKey: "box.height",
|
||||
isReadOnly: true,
|
||||
isReadOnly: false,
|
||||
);
|
||||
final dimBox = Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
|
||||
@@ -408,10 +408,10 @@ class _CartonInfoState extends State<CartonInfo> {
|
||||
}
|
||||
|
||||
_gotoEditor() async {
|
||||
widget.box.mixCartons = _box.mixCartons;
|
||||
_box.mixCartons = _box.mixCartons;
|
||||
bool updated = await Navigator.push<bool>(
|
||||
context,
|
||||
CupertinoPageRoute(builder: (context) => CartonEditor(box: widget.box)),
|
||||
CupertinoPageRoute(builder: (context) => CartonEditor(box: _box)),
|
||||
);
|
||||
if (updated ?? false) {
|
||||
var cartonModel = Provider.of<CartonModel>(context, listen: false);
|
||||
|
||||
@@ -97,17 +97,17 @@ class _PackageCartonEditorState extends State<PackageCartonEditor> {
|
||||
final lengthBox = LengthPicker(
|
||||
controller: _lengthCtl,
|
||||
lableKey: "box.length",
|
||||
isReadOnly: true,
|
||||
isReadOnly: false,
|
||||
);
|
||||
final widthBox = LengthPicker(
|
||||
controller: _widthCtl,
|
||||
lableKey: "box.width",
|
||||
isReadOnly: true,
|
||||
isReadOnly: false,
|
||||
);
|
||||
final heightBox = LengthPicker(
|
||||
controller: _heightCtl,
|
||||
lableKey: "box.height",
|
||||
isReadOnly: true,
|
||||
isReadOnly: false,
|
||||
);
|
||||
final dimBox = Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
|
||||
Reference in New Issue
Block a user