change page navigation
This commit is contained in:
@@ -59,7 +59,7 @@ class _CustomerListState extends State<CustomerList> {
|
||||
),
|
||||
floatingActionButton: FloatingActionButton.extended(
|
||||
onPressed: () {
|
||||
Navigator.of(context).push(BottomUpPageRoute(InvitationCreate()));
|
||||
Navigator.of(context).push(CupertinoPageRoute(builder: (context) => InvitationCreate()));
|
||||
},
|
||||
icon: Icon(Icons.add),
|
||||
label: LocalText(context, "invitation.new", color: Colors.white),
|
||||
@@ -204,7 +204,7 @@ class _CustomerListState extends State<CustomerList> {
|
||||
|
||||
_select(User customer) {
|
||||
Navigator.of(context)
|
||||
.push(BottomUpPageRoute(CustomerEditor(customer: customer)));
|
||||
.push(CupertinoPageRoute(builder: (context) => CustomerEditor(customer: customer)));
|
||||
}
|
||||
|
||||
_gotoMsg(User customer) {
|
||||
@@ -212,7 +212,7 @@ class _CustomerListState extends State<CustomerList> {
|
||||
Provider.of<MessageModel>(context, listen: false);
|
||||
messageModel.initQuery(customer.id);
|
||||
Navigator.of(context)
|
||||
.push(BottomUpPageRoute(MessageDetail(
|
||||
.push(CupertinoPageRoute(builder: (context) => MessageDetail(
|
||||
receiverID: customer.id,
|
||||
receiverName: customer.name,
|
||||
messageModel: messageModel,
|
||||
|
||||
Reference in New Issue
Block a user