upgrade packages

This commit is contained in:
tzw
2024-01-09 13:11:22 +06:30
parent cbd8ddad08
commit 3e1c61a9f6
32 changed files with 193 additions and 150 deletions

View File

@@ -822,9 +822,9 @@ class _CartonEditorState extends State<CartonEditor> {
return;
}
double l = double.parse(_lengthController.text, (s) => 0);
double w = double.parse(_widthController.text, (s) => 0);
double h = double.parse(_heightController.text, (s) => 0);
double l = double.parse(_lengthController.text);
double w = double.parse(_widthController.text);
double h = double.parse(_heightController.text);
Carton carton = Carton();
carton.id = _carton!.id;

View File

@@ -73,7 +73,7 @@ class _TotalWeightEditState extends State<TotalWeightEdit> {
_loading = true;
});
try {
double total = double.parse(totalController.text, (s) => 0);
double total = double.parse(totalController.text);
Navigator.pop<double>(context, total);
} catch (e) {
showMsgDialog(context, "Error", e.toString());