-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.dart
65 lines (58 loc) · 2.5 KB
/
app.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:myrecipes_app/screens/recipes_entry.dart';
import 'screens/recipes.dart';
//prefer using simple navigator, so I get animations and simple management
//see https://github.com/flutter/samples/tree/master/provider_shopper
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
pageTransitionsTheme: PageTransitionsTheme(builders: {
TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
TargetPlatform.android: CupertinoPageTransitionsBuilder(),
}),
primaryColorDark: Color(0xFF5D4037),
primaryColor: Color(0xFF795548),
primaryColorLight: Color(0xFFD7CCC8),
accentColor: Color(0xFFFF9800),
dividerColor: Color(0xFF8B8B8B),
textTheme: TextTheme(
//headline1: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
//headline2: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
//headline3: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
//headline4: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
//headline5: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
headline6: TextStyle(fontSize: 20.0, fontFamily: 'Georgia', fontWeight: FontWeight.bold), //used
//headline6: TextStyle(fontSize: 36.0, fontStyle: FontStyle.italic),
bodyText2: TextStyle(fontSize: 14.0, fontFamily: 'Georgia'), //used
//bodyText1: TextStyle(fontSize: 16.0, fontStyle: FontStyle.italic),
//caption: TextStyle(fontSize: 16.0,fontStyle: FontStyle.italic),
//button: TextStyle(fontSize: 16.0,fontStyle: FontStyle.italic),
subtitle1: TextStyle(fontSize: 16.0, fontFamily: 'Georgia'), //used
//subtitle2: TextStyle(fontSize: 16.0,fontStyle: FontStyle.italic),
//overline: TextStyle(fontSize: 16.0,fontStyle: FontStyle.italic),
),
appBarTheme: AppBarTheme(
textTheme: TextTheme(
headline6: TextStyle(
fontFamily: 'Georgia',
fontWeight: FontWeight.bold,
fontSize: 26,
fontStyle: FontStyle.italic
)
)
),
),
//ROUTES
initialRoute: '/list',
routes: {
// '/': (context) => MyLogin(),
'/list': (context) => Recipes(),
'/entry': (context) => RecipeLoad(),
},
//
);
}
}