change page navigation
This commit is contained in:
@@ -45,7 +45,8 @@ class _StaffListState extends State<StaffList> {
|
||||
),
|
||||
floatingActionButton: FloatingActionButton.extended(
|
||||
onPressed: () {
|
||||
Navigator.of(context).push(BottomUpPageRoute(StaffEditor()));
|
||||
Navigator.of(context)
|
||||
.push(CupertinoPageRoute(builder: (context) => StaffEditor()));
|
||||
},
|
||||
icon: Icon(Icons.add),
|
||||
label: LocalText(context, "staff.new", color: Colors.white),
|
||||
@@ -72,8 +73,8 @@ class _StaffListState extends State<StaffList> {
|
||||
children: <Widget>[
|
||||
InkWell(
|
||||
onTap: () {
|
||||
Navigator.of(context)
|
||||
.push(BottomUpPageRoute(StaffEditor(staff: user)));
|
||||
Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) => StaffEditor(staff: user)));
|
||||
},
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
|
||||
Reference in New Issue
Block a user