fix invoice display

This commit is contained in:
Sai Naw Wun
2020-10-28 06:23:04 +06:30
parent 9f58e7f748
commit bd63e1e161
4 changed files with 54 additions and 46 deletions

View File

@@ -120,8 +120,10 @@ class _InvoiceListState extends State<InvoiceList> {
itemCount: invoiceModel.invoices.length,
itemBuilder: (BuildContext context, int index) {
return InvoiceListRow(
key: ValueKey(invoiceModel.invoices[index].id),
invoice: invoiceModel.invoices[index]);
key: ValueKey(invoiceModel.invoices[index].id),
invoice: invoiceModel.invoices[index],
forCustomer: widget.forCustomer,
);
}),
onRefresh: () => invoiceModel.refresh(),
),