Merge branch 'master' of https://git.mokkon.com/sainw/fcs
This commit is contained in:
@@ -21,7 +21,8 @@ import 'package:provider/provider.dart';
|
|||||||
|
|
||||||
class InvoiceInfo extends StatefulWidget {
|
class InvoiceInfo extends StatefulWidget {
|
||||||
final Invoice invoice;
|
final Invoice invoice;
|
||||||
InvoiceInfo({this.invoice});
|
final bool forCustomer;
|
||||||
|
InvoiceInfo({this.invoice, this.forCustomer});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
_InvoiceInfoState createState() => _InvoiceInfoState();
|
_InvoiceInfoState createState() => _InvoiceInfoState();
|
||||||
@@ -181,7 +182,7 @@ class _InvoiceInfoState extends State<InvoiceInfo> {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 10,
|
height: 10,
|
||||||
),
|
),
|
||||||
isCanceled ? Container() : cancelBtn,
|
isCanceled || widget.forCustomer ? Container() : cancelBtn,
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -138,7 +138,8 @@ class InvoiceListRow extends StatelessWidget {
|
|||||||
//to go invoice info page
|
//to go invoice info page
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
Navigator.of(context).push(CupertinoPageRoute(
|
Navigator.of(context).push(CupertinoPageRoute(
|
||||||
builder: (context) => InvoiceInfo(invoice: invoice)));
|
builder: (context) =>
|
||||||
|
InvoiceInfo(invoice: invoice, forCustomer: forCustomer)));
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user