change page navigation

This commit is contained in:
PhyoThandar
2020-10-14 13:54:42 +06:30
parent 8f5542c4fb
commit 4007d20fd2
66 changed files with 249 additions and 160 deletions

View File

@@ -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)));
},
)),
)