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

@@ -100,9 +100,13 @@ class _CartonSizeEditorState extends State<CartonSizeEditor> {
CartonSizeModel cartonSizeModel =
Provider.of<CartonSizeModel>(context, listen: false);
try {
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);
if (_isNew) {
CartonSize _cartonSize = CartonSize(
@@ -178,9 +182,9 @@ class _CartonSizeEditorState extends State<CartonSizeEditor> {
_widthController.text != "12" ||
_heightController.text != "12";
} else {
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);
CartonSize _cartonSize = CartonSize(
name: _nameController.text, length: l, width: w, height: h);