update cargo type input for carton
This commit is contained in:
@@ -18,8 +18,8 @@ import 'surcharge_item_addition.dart';
|
||||
|
||||
typedef OnPrevious = Function(List<CargoType> cargoTypes,
|
||||
List<CargoType> customDuties, double totalWeight);
|
||||
typedef OnContinue = Function(
|
||||
List<CargoType> cargoTypes, List<CargoType> customDuties);
|
||||
typedef OnContinue = Function(List<CargoType> cargoTypes,
|
||||
List<CargoType> customDuties, double totalWeight);
|
||||
|
||||
class CargoWidget extends StatefulWidget {
|
||||
final User sender;
|
||||
@@ -408,7 +408,8 @@ class _CargoWidgetState extends State<CargoWidget> {
|
||||
context, "Error", "Please add the right cargo type weight");
|
||||
return;
|
||||
}
|
||||
widget.onContinue!(_cargoTypes, _surchareItems);
|
||||
widget.onContinue!(
|
||||
_cargoTypes, _surchareItems, double.tryParse(totalCtl.text) ?? 0);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user