diff --git a/lib/pages/login_page/account/login_account_page.dart b/lib/pages/login_page/account/login_account_page.dart index ce6a63b..7c07c61 100644 --- a/lib/pages/login_page/account/login_account_page.dart +++ b/lib/pages/login_page/account/login_account_page.dart @@ -1,3 +1,4 @@ +import 'package:flutter/cupertino.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:cached_network_image/cached_network_image.dart'; @@ -55,7 +56,7 @@ class _LoginAccountPageContianerState extends State i /// 跳转到邀请码页面 void _openInvitePage() { print('跳转到邀请码页面'); - Navigator.push(context, MaterialPageRoute( + Navigator.push(context, CupertinoPageRoute( // builder: (_) => PageFactory.create('login_invite', null) builder: (_) => LoginInvitePage() )); diff --git a/lib/pages/login_page/login_page.dart b/lib/pages/login_page/login_page.dart index 99b9b73..5ed0496 100644 --- a/lib/pages/login_page/login_page.dart +++ b/lib/pages/login_page/login_page.dart @@ -42,7 +42,7 @@ class _LoginPageContainerState extends State { void _loginClick(String type) { print('登陆$type'); if(type == 'mobile'){ - Navigator.push(context, MaterialPageRoute( + Navigator.push(context, CupertinoPageRoute( builder: (_) => LoginAccountPage(null) )); } diff --git a/lib/util/router_util.dart b/lib/util/router_util.dart index eddd2d7..fbd1fce 100644 --- a/lib/util/router_util.dart +++ b/lib/util/router_util.dart @@ -1,3 +1,4 @@ +import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:zhiying_comm/pages/login_page/login_page.dart'; @@ -38,7 +39,7 @@ class RouterUtil { page = PageFactory.create('index', Map.from(result)); } return Navigator.of(context) - .push(MaterialPageRoute(builder: (BuildContext context) { + .push(CupertinoPageRoute(builder: (BuildContext context) { return page; })); } @@ -46,7 +47,7 @@ class RouterUtil { // 跳转登录 static Future goLogin(BuildContext context) { return Navigator.of(context) - .push(MaterialPageRoute(builder: (BuildContext context) { + .push(CupertinoPageRoute(builder: (BuildContext context) { return LoginPage(); })); }