张萌 4 years ago
commit 49c35fde64

@ -1,17 +1,19 @@
import 'dart:io';
import 'package:akuCommunity/pages/sign/sign_in_page.dart';
import 'package:ani_route/ani_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_screenutil/screenutil.dart';
import 'package:provider/provider.dart';
import 'package:akuCommunity/provider/cart.dart';
import 'package:flutter_picker/flutter_picker.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:oktoast/oktoast.dart';
import 'package:akuCommunity/pages/tab_navigator.dart';
import 'package:akuCommunity/routers/router_init.dart';
void main() {
ARoute.init(true);
runApp(MyApp());
}

@ -3,6 +3,7 @@ import 'dart:io';
import 'package:akuCommunity/pages/sign/user_authentication_page.dart';
import 'package:akuCommunity/routers/page_routers.dart';
import 'package:ani_route/ani_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:akuCommunity/utils/screenutil.dart';
@ -129,10 +130,7 @@ class _SignInPageState extends State<SignInPage> {
InkWell _inkWellLogin() {
return InkWell(
onTap: () {
Navigator.pushReplacement(
context,
CupertinoPageRoute(builder: (context) => UserAuthenticationPage()),
);
ARoute.push(context, UserAuthenticationPage());
},
child: Container(
alignment: Alignment.center,

@ -1,13 +1,14 @@
import 'package:akuCommunity/pages/tab_navigator.dart';
import 'package:ani_route/ani_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_icons/flutter_icons.dart';
import 'package:akuCommunity/utils/screenutil.dart';
import 'package:akuCommunity/base/base_style.dart';
import 'package:akuCommunity/base/assets_image.dart';
class UserAuthenticationPage extends StatefulWidget {
UserAuthenticationPage({Key key}) : super(key: key);
final BuildContext context;
UserAuthenticationPage({Key key, this.context}) : super(key: key);
@override
_UserAuthenticationPageState createState() => _UserAuthenticationPageState();
@ -38,10 +39,8 @@ class _UserAuthenticationPageState extends State<UserAuthenticationPage> {
MaterialButton(
child: Text('跳过'),
onPressed: () {
Navigator.pushReplacement(
context,
CupertinoPageRoute(builder: (context) => TabNavigator()),
);
ARoute.pop(context);
ARoute.pushReplace(context, TabNavigator());
},
),
],

@ -15,6 +15,13 @@ packages:
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.39.17"
ani_route:
dependency: "direct main"
description:
name: ani_route
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.0.2"
animate_do:
dependency: "direct main"
description:

@ -115,6 +115,8 @@ dependencies:
#用户存储路径
path_provider: ^1.6.18
ani_route: ^0.0.2
dev_dependencies:
flutter_test:
sdk: flutter

Loading…
Cancel
Save