update carton from packages
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:fcs/domain/entities/cargo_type.dart';
|
||||
import 'package:fcs/domain/entities/custom_duty.dart';
|
||||
import 'package:fcs/domain/vo/delivery_address.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
@@ -74,8 +75,7 @@ class _CustomListState extends State<CustomList> {
|
||||
),
|
||||
itemCount: shipmentRateModel.rate.customDuties.length,
|
||||
itemBuilder: (context, index) {
|
||||
CustomDuty custom =
|
||||
shipmentRateModel.rate.customDuties[index];
|
||||
CargoType custom = shipmentRateModel.rate.customDuties[index];
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
_selected
|
||||
@@ -86,11 +86,11 @@ class _CustomListState extends State<CustomList> {
|
||||
},
|
||||
child: Container(
|
||||
child: _row(
|
||||
custom.productType,
|
||||
"\$ " + custom.fee.toStringAsFixed(2),
|
||||
custom.shipmentRate == null
|
||||
custom.name,
|
||||
"Custom Fee \$ " + custom.customDutyFee.toStringAsFixed(2),
|
||||
custom.rate == null
|
||||
? ""
|
||||
: "\$ " + custom.shipmentRate.toStringAsFixed(2)),
|
||||
: "Shipment rate \$ " + custom.rate.toStringAsFixed(2)),
|
||||
),
|
||||
);
|
||||
}),
|
||||
@@ -120,7 +120,7 @@ class _CustomListState extends State<CustomList> {
|
||||
: Padding(
|
||||
padding: const EdgeInsets.only(top: 3.0),
|
||||
child: Text(
|
||||
"\$ " + "$shipmentRate",
|
||||
"$shipmentRate",
|
||||
style: TextStyle(color: Colors.grey, fontSize: 14),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user