-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththemes.dart
62 lines (59 loc) · 2.27 KB
/
themes.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
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:myapp/styles/colors.dart';
class AppThemes {
AppThemes._();
// feel free to change the theme or just add new one
// dont't forget to add it to the theme_cubit.dart
static final primary = ThemeData(
brightness: Brightness.light,
primarySwatch: AppColors.primaryLight,
colorScheme: ColorScheme.fromSwatch(primarySwatch: AppColors.primaryLight)
.copyWith(secondary: AppColors.accentLight),
appBarTheme: const AppBarTheme(
backgroundColor: Colors.white,
foregroundColor: AppColors.primaryLight,
centerTitle: true,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: Colors.white70,
statusBarBrightness: Brightness.dark,
statusBarIconBrightness: Brightness.dark),
titleTextStyle: TextStyle(
color: AppColors.primaryLight,
fontFamily: "Clicker Script",
fontSize: 41,
),
),
cardTheme: const CardTheme(
margin: EdgeInsets.all(8.0),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(8.0))),
),
dividerTheme: const DividerThemeData(indent: 48.0, space: 1.0),
);
static final primaryDarkTheme = ThemeData(
brightness: Brightness.dark,
primarySwatch: AppColors.primaryDark,
colorScheme: ColorScheme.fromSwatch(primarySwatch: AppColors.primaryDark)
.copyWith(secondary: AppColors.accentDark, brightness: Brightness.dark),
appBarTheme: const AppBarTheme(
backgroundColor: Colors.black12,
foregroundColor: Colors.white,
centerTitle: true,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarColor: Colors.black26,
statusBarBrightness: Brightness.light,
statusBarIconBrightness: Brightness.light),
titleTextStyle: TextStyle(
fontFamily: "Clicker Script", fontSize: 41, color: Colors.white),
),
cardTheme: const CardTheme(
margin: EdgeInsets.all(8.0),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(8.0))),
),
dividerTheme: const DividerThemeData(indent: 48.0, space: 1.0),
snackBarTheme: const SnackBarThemeData(
contentTextStyle: TextStyle(color: Colors.white)),
);
}