youngSerif font does not work
kengsc opened this issue · 1 comments
kengsc commented
Package
google_fonts
Existing issue?
- I checked the existing issues
What happened?
My flutter is completely up to date and using the latest package for google_fonts but I can't get this font to work.
ThemeData(
textTheme: GoogleFonts.youngSerifTextTheme(),
),
Error: "The method 'youngSerifTextTheme' isn't defined for the type 'GoogleFonts'.
Try correcting the name to the name of an existing method, or defining a method named 'youngSerifTextTheme'."
OR trying
Text(
'This is Google Fonts',
style: GoogleFonts.youngSerif(),
),
Error:
The method 'youngSerif' isn't defined for the type 'GoogleFonts'.
Try correcting the name to the name of an existing method, or defining a method named 'youngSerif'.
Relevant log output
No response