change page navigation
This commit is contained in:
@@ -52,9 +52,10 @@ class _DiscountListState extends State<DiscountList> {
|
||||
onTap: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
BottomUpPageRoute(DiscountEditor(
|
||||
discount: discount,
|
||||
)),
|
||||
CupertinoPageRoute(
|
||||
builder: (context) => DiscountEditor(
|
||||
discount: discount,
|
||||
)),
|
||||
);
|
||||
},
|
||||
child: Padding(
|
||||
@@ -119,7 +120,7 @@ class _DiscountListState extends State<DiscountList> {
|
||||
onPressed: () {
|
||||
Navigator.push(
|
||||
context,
|
||||
BottomUpPageRoute(DiscountEditor()),
|
||||
CupertinoPageRoute(builder: (context) => DiscountEditor()),
|
||||
);
|
||||
},
|
||||
icon: Icon(Icons.add),
|
||||
|
||||
Reference in New Issue
Block a user