upgrade packages
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user