update carton and cargo type
This commit is contained in:
@@ -11,30 +11,20 @@ import 'package:provider/provider.dart';
|
||||
import 'model/shipment_rate_model.dart';
|
||||
|
||||
class DiscountByWeightList extends StatefulWidget {
|
||||
const DiscountByWeightList({Key? key}) : super(key: key);
|
||||
const DiscountByWeightList({super.key});
|
||||
@override
|
||||
_DiscountByWeightListState createState() => _DiscountByWeightListState();
|
||||
}
|
||||
|
||||
class _DiscountByWeightListState extends State<DiscountByWeightList> {
|
||||
bool _isLoading = false;
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
}
|
||||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
}
|
||||
bool isLoading = false;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var shipmentRateModel = Provider.of<ShipmentRateModel>(context);
|
||||
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
inAsyncCall: isLoading,
|
||||
child: Scaffold(
|
||||
appBar: LocalAppBar(labelKey: 'rate.discount_by_weight'),
|
||||
floatingActionButton: FloatingActionButton.extended(
|
||||
@@ -64,7 +54,7 @@ class _DiscountByWeightListState extends State<DiscountByWeightList> {
|
||||
child: Container(
|
||||
child: _row(
|
||||
"${discountByWeight.weight.toStringAsFixed(2)} lb",
|
||||
"\$ " + discountByWeight.discount.toString()),
|
||||
"\$ ${discountByWeight.discount}"),
|
||||
),
|
||||
);
|
||||
}),
|
||||
@@ -85,7 +75,7 @@ class _DiscountByWeightListState extends State<DiscountByWeightList> {
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 3.0),
|
||||
child: Text(
|
||||
'$price',
|
||||
price,
|
||||
style: TextStyle(color: primaryColor, fontSize: 14),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user