-
Notifications
You must be signed in to change notification settings - Fork 606
/
Copy pathmain.dart
65 lines (58 loc) · 2.45 KB
/
main.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import 'package:flutter/material.dart';
import 'package:flutter_ui_nice/page/navigation/navigation1/coordinator.dart';
import 'package:flutter_ui_nice/page/page_const.dart';
import 'const/string_const.dart';
import 'const/color_const.dart';
import 'const/page_str_const.dart';
import "page/page_const.dart";
import 'package:flutter/services.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
SystemChrome.setEnabledSystemUIOverlays([]);
return MaterialApp(
title: StringConst.APP_NAME,
debugShowCheckedModeBanner: false,
theme: ThemeData(
primaryColor: BLUE_DEEP,
accentColor: YELLOW,
fontFamily: "Montserrat",
),
home: HomePage(),
routes: {
//PROFILE pages
PROFILE_PAGES[0]: (context) => ProfilePageOne(),
PROFILE_PAGES[1]: (context) => ProfilePageTwo(),
SIGN_UP_PAGES[0]: (context) => SignPageOne(),
SIGN_UP_PAGES[1]: (context) => SignPageTwo(),
SIGN_UP_PAGES[2]: (context) => SignPageThree(),
SIGN_UP_PAGES[3]: (context) => SignPageFour(),
SIGN_UP_PAGES[4]: (context) => SignPageFive(),
SIGN_UP_PAGES[5]: (context) => SignPageSix(),
SIGN_UP_PAGES[6]: (context) => SignPageSeven(),
SIGN_UP_PAGES[7]: (context) => SignPageEight(),
SIGN_UP_PAGES[8]: (context) => SignPageNine(),
SIGN_UP_PAGES[9]: (context) => SignPageTeen(),
SIGN_UP_PAGES[10]: (context) => SignPageEleven(),
///FEED group page
FEED_PAGES[0]: (context) => FeedPageOne(),
FEED_PAGES[1]: (context) => FeedPageTwo(),
FEED_PAGES[2]: (context) => FeedThreePage(),
FEED_PAGES[3]: (context) => FeedPageFour(),
FEED_PAGES[4]: (context) => FeedFivePage(),
FEED_PAGES[9]: (context) => FeedPageTen(),
FEED_PAGES[10]: (context) => FeedPageEleven(),
FEED_PAGES[11]: (context) => FeedPageTwelve(),
FEED_PAGES[12]: (context) => FeedPageThirteen(),
SHOPPING_PAGES[17]: (context) => ShopPageEighteen(),
SHOPPING_PAGES[18]: (context) => ShopPageNineteen(),
NAVIGATION_PAGES[0]: (context) => NavigationOneCoordinator(),
//FIXME there are other pages to jump with 'page_str_const.dart',there should be make by manager
},
onUnknownRoute: (setting) =>
MaterialPageRoute(builder: (context) => EmptyPage()),
);
}
}