From 80ec8f7d5ee34a7977de946df541292fd964aba2 Mon Sep 17 00:00:00 2001 From: PH2 <1293456824@qq.com> Date: Fri, 16 Oct 2020 14:23:27 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/login_page/account/login_account_page.dart | 3 ++- lib/pages/login_page/login_page.dart | 2 +- lib/util/router_util.dart | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) 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(); })); }