change page navigation
This commit is contained in:
@@ -46,7 +46,8 @@ class _FAQListPageState extends State<FAQListPage>
|
||||
floatingActionButton: isEditable
|
||||
? FloatingActionButton.extended(
|
||||
onPressed: () {
|
||||
Navigator.of(context).push(BottomUpPageRoute(FAQEditor()));
|
||||
Navigator.of(context).push(
|
||||
CupertinoPageRoute(builder: (context) => FAQEditor()));
|
||||
},
|
||||
icon: Icon(Icons.add),
|
||||
label: LocalText(context, "faq.add.title", color: Colors.white),
|
||||
@@ -171,9 +172,11 @@ class _FAQListPageState extends State<FAQListPage>
|
||||
|
||||
_selectLinkPage(String linkPage) {
|
||||
if (linkPage == page_payment_methods) {
|
||||
Navigator.of(context).push(BottomUpPageRoute(PaymentMethodPage()));
|
||||
Navigator.of(context)
|
||||
.push(CupertinoPageRoute(builder: (context) => PaymentMethodPage()));
|
||||
} else if (linkPage == page_buying_instructions) {
|
||||
Navigator.of(context).push(BottomUpPageRoute(BuyingOnlinePage()));
|
||||
Navigator.of(context)
|
||||
.push(CupertinoPageRoute(builder: (context) => BuyingOnlinePage()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user