theme_data.dart
1.19 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
import 'package:flutter/material.dart';
var lightThemeData = ThemeData(
primarySwatch: Colors.blueGrey,
backgroundColor: Colors.white,
cardColor: Colors.blueGrey[50],
primaryTextTheme: TextTheme(
button: TextStyle(
color: Colors.blueGrey,
decorationColor: Colors.blueGrey[300],
),
subtitle2: TextStyle(
color: Colors.blueGrey[900],
),
subtitle1: TextStyle(
color: Colors.black,
),
headline1: TextStyle(color: Colors.blueGrey[800]),
),
bottomAppBarColor: Colors.blueGrey[900],
iconTheme: IconThemeData(color: Colors.blueGrey),
brightness: Brightness.light,
);
var darkThemeData = ThemeData(
primarySwatch: Colors.blueGrey,
backgroundColor: Colors.blueGrey[900],
cardColor: Colors.black,
primaryTextTheme: TextTheme(
button: TextStyle(
color: Colors.blueGrey[200],
decorationColor: Colors.blueGrey[50],
),
subtitle2: TextStyle(
color: Colors.white,
),
subtitle1: TextStyle(
color: Colors.blueGrey[300],
),
headline1: TextStyle(
color: Colors.white70,
),
),
bottomAppBarColor: Colors.black,
iconTheme: IconThemeData(color: Colors.blueGrey[200]),
brightness: Brightness.dark,
);