@@ -20,51 +20,40 @@ import 'package:flutter_app_sample/sample/notifier/CardMainPage.dart';
2020import 'package:flutter_app_sample/sample/notifier/CardInfoPage.dart' ;
2121import 'package:flutter_app_sample/sample/drag/DragListPage.dart' ;
2222import 'package:flutter_app_sample/sample/DrawerVariouslyPage.dart' ;
23- import 'package:flutter_route/flutter_route .dart' ;
23+ import 'package:airoute/airoute .dart' ;
2424
2525// Register the RouteObserver as a navigation observer.
2626@deprecated //2019
2727final RouteObserver <PageRoute > routeObserver = RouteObserver <PageRoute >();
2828
29- void main () => runApp (MaterialApp (
29+ void main () => runApp (Airoute . createMaterialApp (
3030 home: Scaffold (
3131 body: LoginPage (),
3232 ),
3333
3434 ///全局静态路由的配置!
35- routes: RouteManager .initializeRoutes (
36- routes: < String , WidgetBuilder > {
37- "LoginPage" : (BuildContext context) => LoginPage (),
38- "MainPage" : (BuildContext context) => MainPage (),
39- "TestPage" : (BuildContext context) => TestPage (),
40- "ShoppingList" : (BuildContext context) => ShoppingListPage (),
41- "MainSortListPage" : (BuildContext context) => MainSortListPage (),
42- "ViewPagerFragmentPage" : (BuildContext context) =>
43- ViewPagerFragmentPage (),
44- "CollapsingToolbarPage" : (BuildContext context) =>
45- CollapsingToolbarPage (),
46- "MainAnimSortPage" : (BuildContext context) => MainAnimSortPage (),
47- "AnimOfSwitchPage" : (BuildContext context) => AnimOfSwitchPage (),
48- "AnimatedContainerPage" : (BuildContext context) =>
49- AnimatedContainerPage (),
50- "OpacityAndAnimatedOpacityPage" : (BuildContext context) =>
51- OpacityAndAnimatedOpacityPage (),
52- "FadeInImagePage" : (BuildContext context) => FadeInImagePage (),
53- "HeroAnimPage" : (BuildContext context) => HeroAnimPage (),
54- "TransformPage" : (BuildContext context) => TransformPage (),
55- "AnimatedBuilderPage" : (BuildContext context) =>
56- AnimatedBuilderPage (),
57- "ColorTweenPage" : (BuildContext context) => ColorTweenPage (),
58- "CardMainPage" : (BuildContext context) => CardMainPage (),
59- "CardInfoPage" : (BuildContext context) => CardInfoPage (),
60- "DragListPage" : (BuildContext context) => DragListPage (),
61- "DrawerVariouslyPage" : (BuildContext context) =>
62- DrawerVariouslyPage (),
63- },
64- ),
65- navigatorObservers: [
66- RouteManager .getInstance (),
67- ],
35+ routes: < String , AirouteBuilder > {
36+ "LoginPage" : () => LoginPage (),
37+ "MainPage" : () => MainPage (),
38+ "TestPage" : () => TestPage (),
39+ "ShoppingList" : () => ShoppingListPage (),
40+ "MainSortListPage" : () => MainSortListPage (),
41+ "ViewPagerFragmentPage" : () => ViewPagerFragmentPage (),
42+ "CollapsingToolbarPage" : () => CollapsingToolbarPage (),
43+ "MainAnimSortPage" : () => MainAnimSortPage (),
44+ "AnimOfSwitchPage" : () => AnimOfSwitchPage (),
45+ "AnimatedContainerPage" : () => AnimatedContainerPage (),
46+ "OpacityAndAnimatedOpacityPage" : () => OpacityAndAnimatedOpacityPage (),
47+ "FadeInImagePage" : () => FadeInImagePage (),
48+ "HeroAnimPage" : () => HeroAnimPage (),
49+ "TransformPage" : () => TransformPage (),
50+ "AnimatedBuilderPage" : () => AnimatedBuilderPage (),
51+ "ColorTweenPage" : () => ColorTweenPage (),
52+ "CardMainPage" : () => CardMainPage (),
53+ "CardInfoPage" : () => CardInfoPage (),
54+ "DragListPage" : () => DragListPage (),
55+ "DrawerVariouslyPage" : () => DrawerVariouslyPage (),
56+ },
6857 ));
6958
7059class MyApp extends AppCommonStatefulPage {
0 commit comments