|
|
@@ -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<String, dynamic>.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(); |
|
|
|
})); |
|
|
|
} |
|
|
|