update invoice
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/pages/fcs_shipment/model/fcs_shipment_model.dart';
|
||||
import 'package:fcs/pages/shipment/model/shipment_model.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
@@ -28,7 +29,7 @@ class _InvoiceShipmentListState extends State<InvoiceShipmentList> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
ShipmentModel shipmentModel = Provider.of<ShipmentModel>(context);
|
||||
FcsShipmentModel fcsShipmentModel = Provider.of<FcsShipmentModel>(context);
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: DefaultTabController(
|
||||
@@ -61,10 +62,10 @@ class _InvoiceShipmentListState extends State<InvoiceShipmentList> {
|
||||
scrollDirection: Axis.vertical,
|
||||
padding: EdgeInsets.only(top: 15),
|
||||
shrinkWrap: true,
|
||||
itemCount: shipmentModel.shipments.length,
|
||||
itemCount: fcsShipmentModel.fcsShipments.length,
|
||||
itemBuilder: (BuildContext context, int index) {
|
||||
return InvoiceShipmentListRow(
|
||||
pickUp: shipmentModel.shipments[index]);
|
||||
fcsShipment: fcsShipmentModel.fcsShipments[index]);
|
||||
}),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user