forked from JideGuru/FlutterTravel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconst.dart
More file actions
51 lines (47 loc) · 1.3 KB
/
const.dart
File metadata and controls
51 lines (47 loc) · 1.3 KB
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
import 'package:flutter/material.dart';
class Constants {
static String appName = "Flutter Travel";
//Colors for theme
static Color lightPrimary = Color(0xfffcfcff);
static Color darkPrimary = Colors.black;
static Color lightAccent = Colors.blueGrey[900];
static Color darkAccent = Colors.white;
static Color lightBG = Color(0xfffcfcff);
static Color darkBG = Colors.black;
static Color badgeColor = Colors.red;
static ThemeData lightTheme = ThemeData(
backgroundColor: lightBG,
primaryColor: lightPrimary,
accentColor: lightAccent,
cursorColor: lightAccent,
scaffoldBackgroundColor: lightBG,
appBarTheme: AppBarTheme(
elevation: 0,
textTheme: TextTheme(
headline6: TextStyle(
color: darkBG,
fontSize: 18.0,
fontWeight: FontWeight.w800,
),
),
),
);
static ThemeData darkTheme = ThemeData(
brightness: Brightness.dark,
backgroundColor: darkBG,
primaryColor: darkPrimary,
accentColor: darkAccent,
scaffoldBackgroundColor: darkBG,
cursorColor: darkAccent,
appBarTheme: AppBarTheme(
elevation: 0,
textTheme: TextTheme(
headline6: TextStyle(
color: lightBG,
fontSize: 18.0,
fontWeight: FontWeight.w800,
),
),
),
);
}