@@ -11,75 +11,76 @@ class AppTheme {
11
11
12
12
return ThemeData (
13
13
brightness: Brightness .light,
14
+ fontFamily: GoogleFonts .abel ().fontFamily,
14
15
primaryColor: const Color (0xFF8E97FD ),
15
16
primaryColorDark: const Color (0xFF3F414E ),
16
17
primaryColorLight: Colors .white,
17
18
dividerTheme: DividerThemeData (color: secondaryTextColor),
18
19
textTheme: TextTheme (
19
- displayLarge: GoogleFonts . abel (
20
+ displayLarge: TextStyle (
20
21
fontSize: 57 , // Display terbesar untuk teks utama atau header besar
21
22
color: primaryTextColor,
22
23
fontWeight: FontWeight .w300,
23
24
),
24
- displayMedium: GoogleFonts . abel (
25
+ displayMedium: TextStyle (
25
26
fontSize:
26
27
45 , // Display sedang, digunakan untuk header besar namun tidak dominan
27
28
color: primaryTextColor,
28
29
fontWeight: FontWeight .w300,
29
30
),
30
- displaySmall: GoogleFonts . abel (
31
+ displaySmall: TextStyle (
31
32
fontSize: 36 , // Display kecil, untuk sub-header atau judul penting
32
33
color: primaryTextColor,
33
34
fontWeight: FontWeight .bold,
34
35
),
35
- headlineLarge: GoogleFonts . abel (
36
+ headlineLarge: TextStyle (
36
37
fontSize: 32 , // Ukuran untuk headline atau judul utama
37
38
color: secondaryTextColor,
38
39
),
39
- headlineMedium: GoogleFonts . abel (
40
+ headlineMedium: TextStyle (
40
41
fontSize: 28 , // Ukuran headline menengah
41
42
color: primaryTextColor,
42
43
),
43
- headlineSmall: GoogleFonts . abel (
44
+ headlineSmall: TextStyle (
44
45
fontSize: 24 , // Ukuran headline kecil
45
46
color: primaryTextColor,
46
47
),
47
- titleLarge: GoogleFonts . abel (
48
+ titleLarge: TextStyle (
48
49
fontSize: 22 , // Ukuran besar untuk judul utama di layar
49
50
color: secondaryTextColor,
50
51
),
51
- titleMedium: GoogleFonts . abel (
52
+ titleMedium: TextStyle (
52
53
fontSize: 18 , // Ukuran sedang untuk judul atau subtitle
53
54
color: primaryTextColor,
54
55
fontWeight: FontWeight .bold,
55
56
),
56
- titleSmall: GoogleFonts . abel (
57
+ titleSmall: TextStyle (
57
58
fontSize: 14 , // Ukuran kecil untuk subtitle atau label
58
59
color: secondaryTextColor,
59
60
fontWeight: FontWeight .w300,
60
61
),
61
- bodyLarge: GoogleFonts . abel (
62
+ bodyLarge: TextStyle (
62
63
fontSize: 16 , // Ukuran teks utama
63
64
color: primaryTextColor,
64
65
),
65
- bodyMedium: GoogleFonts . abel (
66
+ bodyMedium: TextStyle (
66
67
fontSize: 14 , // Ukuran teks sekunder
67
68
color: primaryTextColor,
68
69
),
69
- bodySmall: GoogleFonts . abel (
70
+ bodySmall: TextStyle (
70
71
fontSize: 12 , // Ukuran untuk teks tambahan atau catatan
71
72
color: secondaryTextColor,
72
73
),
73
- labelLarge: GoogleFonts . abel (
74
+ labelLarge: TextStyle (
74
75
fontSize:
75
76
14 , // Label besar, digunakan untuk tombol atau label penting
76
77
color: secondaryTextColor,
77
78
),
78
- labelMedium: GoogleFonts . abel (
79
+ labelMedium: TextStyle (
79
80
fontSize: 12 , // Label sedang untuk UI elemen
80
81
color: secondaryTextColor,
81
82
),
82
- labelSmall: GoogleFonts . abel (
83
+ labelSmall: TextStyle (
83
84
fontSize: 11 , // Label kecil, digunakan untuk indikator atau ikon
84
85
color: secondaryTextColor,
85
86
),
@@ -94,6 +95,7 @@ class AppTheme {
94
95
95
96
return ThemeData (
96
97
brightness: Brightness .dark,
98
+ fontFamily: GoogleFonts .abel ().fontFamily,
97
99
scaffoldBackgroundColor: const Color (0xFF02174C ),
98
100
primaryColor: const Color (0xFF8E97FD ),
99
101
primaryColorDark: const Color (0xFFE6E7F2 ),
@@ -103,70 +105,70 @@ class AppTheme {
103
105
backgroundColor: Color (0xFF03174D ), // Warna background untuk mode gelap
104
106
),
105
107
textTheme: TextTheme (
106
- displayLarge: GoogleFonts . abel (
108
+ displayLarge: TextStyle (
107
109
fontSize: 57 , // Display terbesar untuk teks utama atau header besar
108
110
color: primaryTextColor,
109
111
fontWeight: FontWeight .w300,
110
112
),
111
- displayMedium: GoogleFonts . abel (
113
+ displayMedium: TextStyle (
112
114
fontSize:
113
115
45 , // Display sedang, digunakan untuk header besar namun tidak dominan
114
116
color: primaryTextColor,
115
117
fontWeight: FontWeight .w300,
116
118
),
117
- displaySmall: GoogleFonts . abel (
119
+ displaySmall: TextStyle (
118
120
fontSize: 36 , // Display kecil, untuk sub-header atau judul penting
119
121
color: primaryTextColor,
120
122
fontWeight: FontWeight .bold,
121
123
),
122
- headlineLarge: GoogleFonts . abel (
124
+ headlineLarge: TextStyle (
123
125
fontSize: 32 , // Ukuran untuk headline atau judul utama
124
126
color: secondaryTextColor,
125
127
),
126
- headlineMedium: GoogleFonts . abel (
128
+ headlineMedium: TextStyle (
127
129
fontSize: 28 , // Ukuran headline menengah
128
130
color: primaryTextColor,
129
131
),
130
- headlineSmall: GoogleFonts . abel (
132
+ headlineSmall: TextStyle (
131
133
fontSize: 24 , // Ukuran headline kecil
132
134
color: primaryTextColor,
133
135
),
134
- titleLarge: GoogleFonts . abel (
136
+ titleLarge: TextStyle (
135
137
fontSize: 22 , // Ukuran besar untuk judul utama di layar
136
138
color: secondaryTextColor,
137
139
),
138
- titleMedium: GoogleFonts . abel (
140
+ titleMedium: TextStyle (
139
141
fontSize: 18 , // Ukuran sedang untuk judul atau subtitle
140
142
color: primaryTextColor,
141
143
fontWeight: FontWeight .bold,
142
144
),
143
- titleSmall: GoogleFonts . abel (
145
+ titleSmall: TextStyle (
144
146
fontSize: 14 , // Ukuran kecil untuk subtitle atau label
145
147
color: secondaryTextColor,
146
148
fontWeight: FontWeight .w300,
147
149
),
148
- bodyLarge: GoogleFonts . abel (
150
+ bodyLarge: TextStyle (
149
151
fontSize: 16 , // Ukuran teks utama
150
152
color: primaryTextColor,
151
153
),
152
- bodyMedium: GoogleFonts . abel (
154
+ bodyMedium: TextStyle (
153
155
fontSize: 14 , // Ukuran teks sekunder
154
156
color: primaryTextColor,
155
157
),
156
- bodySmall: GoogleFonts . abel (
158
+ bodySmall: TextStyle (
157
159
fontSize: 12 , // Ukuran untuk teks tambahan atau catatan
158
160
color: secondaryTextColor,
159
161
),
160
- labelLarge: GoogleFonts . abel (
162
+ labelLarge: TextStyle (
161
163
fontSize:
162
164
14 , // Label besar, digunakan untuk tombol atau label penting
163
165
color: secondaryTextColor,
164
166
),
165
- labelMedium: GoogleFonts . abel (
167
+ labelMedium: TextStyle (
166
168
fontSize: 12 , // Label sedang untuk UI elemen
167
169
color: secondaryTextColor,
168
170
),
169
- labelSmall: GoogleFonts . abel (
171
+ labelSmall: TextStyle (
170
172
fontSize: 11 , // Label kecil, digunakan untuk indikator atau ikon
171
173
color: secondaryTextColor,
172
174
),
0 commit comments