11import 'package:flutter/material.dart' ;
2+ import 'package:google_fonts/google_fonts.dart' ;
23import 'package:grocery_list_maker/constants/colors.dart' ;
34
45class AppThemes {
@@ -15,6 +16,7 @@ class AppThemes {
1516 popupMenuTheme: const PopupMenuThemeData (
1617 color: lightColor,
1718 ),
19+ dividerColor: Colors .grey.shade300,
1820 elevatedButtonTheme: ElevatedButtonThemeData (
1921 style: ButtonStyle (
2022 backgroundColor: MaterialStateProperty .all (Colors .redAccent),
@@ -28,20 +30,19 @@ class AppThemes {
2830 appBarTheme: const AppBarTheme (
2931 backgroundColor: lightColor,
3032 ),
31- textTheme: const TextTheme (
32- bodyText1: TextStyle (color: darkColor),
33- bodyText2: TextStyle (color: darkColor),
34- subtitle1: TextStyle (color: darkColor),
35- subtitle2: TextStyle (color: darkColor),
36- caption: TextStyle (color: darkColor),
37- headline1: TextStyle (color: darkColor),
38- headline2: TextStyle (color: darkColor),
39- headline3: TextStyle (color: darkColor),
40- headline4: TextStyle (color: darkColor),
41- headline5: TextStyle (color: darkColor),
42- headline6: TextStyle (color: darkColor),
43- button: TextStyle (color: darkColor),
44- overline: TextStyle (color: darkColor),
33+ textTheme: TextTheme (
34+ bodyText1: GoogleFonts .poppins (
35+ textStyle: const TextStyle (color: darkColor),
36+ ),
37+ bodyText2: GoogleFonts .poppins (
38+ textStyle: const TextStyle (color: darkColor),
39+ ),
40+ subtitle1: GoogleFonts .poppins (
41+ textStyle: TextStyle (color: darkColor.withOpacity (0.4 )),
42+ ),
43+ subtitle2: GoogleFonts .poppins (
44+ textStyle: TextStyle (color: darkColor.withOpacity (0.4 )),
45+ ),
4546 ),
4647 );
4748
@@ -56,6 +57,7 @@ class AppThemes {
5657 popupMenuTheme: const PopupMenuThemeData (
5758 color: darkColor2,
5859 ),
60+ dividerColor: Colors .grey.shade700,
5961 elevatedButtonTheme: ElevatedButtonThemeData (
6062 style: ButtonStyle (
6163 backgroundColor: MaterialStateProperty .all (Colors .redAccent),
@@ -69,20 +71,19 @@ class AppThemes {
6971 appBarTheme: const AppBarTheme (
7072 backgroundColor: darkColor,
7173 ),
72- textTheme: const TextTheme (
73- bodyText1: TextStyle (color: lightColor),
74- bodyText2: TextStyle (color: lightColor),
75- subtitle1: TextStyle (color: lightColor),
76- subtitle2: TextStyle (color: lightColor),
77- caption: TextStyle (color: lightColor),
78- headline1: TextStyle (color: lightColor),
79- headline2: TextStyle (color: lightColor),
80- headline3: TextStyle (color: lightColor),
81- headline4: TextStyle (color: lightColor),
82- headline5: TextStyle (color: lightColor),
83- headline6: TextStyle (color: lightColor),
84- button: TextStyle (color: lightColor),
85- overline: TextStyle (color: lightColor),
74+ textTheme: TextTheme (
75+ bodyText1: GoogleFonts .poppins (
76+ textStyle: const TextStyle (color: lightColor),
77+ ),
78+ bodyText2: GoogleFonts .poppins (
79+ textStyle: const TextStyle (color: lightColor),
80+ ),
81+ subtitle1: GoogleFonts .poppins (
82+ textStyle: TextStyle (color: lightColor.withOpacity (0.4 )),
83+ ),
84+ subtitle2: GoogleFonts .poppins (
85+ textStyle: TextStyle (color: lightColor.withOpacity (0.4 )),
86+ ),
8687 ),
8788 );
8889}
0 commit comments