change page navigation
This commit is contained in:
@@ -78,12 +78,13 @@ class _InvoiceListRowState extends State<InvoiceListRow> {
|
||||
child: InkWell(
|
||||
onTap: () {
|
||||
owner
|
||||
? Navigator.of(context).push(
|
||||
BottomUpPageRoute(InvoiceEditor(invoice: _invoice)))
|
||||
: Navigator.of(context)
|
||||
.push(BottomUpPageRoute(PaymentPDFScreen(
|
||||
path: pdfPath,
|
||||
)));
|
||||
? Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) =>
|
||||
InvoiceEditor(invoice: _invoice)))
|
||||
: Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) => PaymentPDFScreen(
|
||||
path: pdfPath,
|
||||
)));
|
||||
},
|
||||
child: new Row(
|
||||
children: <Widget>[
|
||||
@@ -147,8 +148,9 @@ class _InvoiceListRowState extends State<InvoiceListRow> {
|
||||
],
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.of(context).push(
|
||||
BottomUpPageRoute(PaymentPage(invoice: _invoice)));
|
||||
Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) =>
|
||||
PaymentPage(invoice: _invoice)));
|
||||
},
|
||||
)),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user