update cargo type form from rate, update carton info and form

This commit is contained in:
tzw
2024-09-25 21:49:09 +06:30
parent 1be18c08a9
commit 02e079c514
51 changed files with 1407 additions and 643 deletions

View File

@@ -30,7 +30,7 @@ class CartonSubmit extends StatelessWidget {
final double length;
final double width;
final double height;
final String deliveryType;
final String lastMile;
final List<CargoType> cargoTypes;
final List<CargoType> surchareItems;
final OnCreateCarton? onCreate;
@@ -47,7 +47,7 @@ class CartonSubmit extends StatelessWidget {
this.packages = const [],
this.standardSize,
required this.cartonSizeType,
required this.deliveryType,
required this.lastMile,
this.length = 0,
this.width = 0,
this.height = 0,
@@ -69,10 +69,7 @@ class CartonSubmit extends StatelessWidget {
final cartonType = Padding(
padding: const EdgeInsets.only(top: 10),
child: SubmitTextWidget(
labelKey: 'box.carton.type',
text: carton_from_packages,
// subText: boxDimension
),
labelKey: 'box.carton.type', text: carton_from_packages),
);
final shipmentBox = Padding(
@@ -187,7 +184,7 @@ class CartonSubmit extends StatelessWidget {
padding: const EdgeInsets.only(top: 10),
child: SubmitTextWidget(
labelKey: 'box.select.delivery',
text: deliveryType,
text: lastMile == delivery_caton ? 'Delivery' : 'Pick-up',
),
);
@@ -195,7 +192,7 @@ class CartonSubmit extends StatelessWidget {
padding: const EdgeInsets.only(top: 10),
child: SubmitTextWidget(
labelKey: 'box.carton_size',
text: boxDimension??'',
text: boxDimension ?? 'No defined size',
),
);