add rate service

This commit is contained in:
Sai Naw Wun
2020-10-15 03:06:13 +06:30
parent 7b88658893
commit 47c07a6c88
45 changed files with 870 additions and 496 deletions

View File

@@ -1,4 +1,4 @@
import 'package:fcs/domain/entities/custom.dart';
import 'package:fcs/domain/entities/custom_duty.dart';
import 'package:fcs/domain/vo/delivery_address.dart';
import 'package:fcs/helpers/theme.dart';
import 'package:fcs/pages/delivery_address/delivery_address_editor.dart';
@@ -60,17 +60,18 @@ class _CustomListState extends State<CustomList> {
separatorBuilder: (c, i) => Divider(
color: primaryColor,
),
itemCount: shipmentRateModel.customs.length,
itemCount: shipmentRateModel.rate.customDuties.length,
itemBuilder: (context, index) {
return _row(context, shipmentRateModel.customs[index]);
return _row(
context, shipmentRateModel.rate.customDuties[index]);
}),
)),
);
}
_row(BuildContext context, Custom custom) {
_row(BuildContext context, CustomDuty custom) {
return InkWell(
onTap: () => Navigator.pop<Custom>(context, custom),
onTap: () => Navigator.pop<CustomDuty>(context, custom),
child: Row(
children: [
Expanded(