You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to access all fonts in a simple list like "GoogleFonts.fonts".
Therefor the only function to achieve something like this is "GoogleFonts.asMap()" which returns all fonts as String/Builder Function pair.
Describe the solution you'd like
Wouldn't it be easier for the whole library to put all fonts in enumes?
like
This way, one could easily retrieve a list of all fonts, could check if a given font is valid and pass the font typesafe around instead of holding a String.
Describe alternatives you've considered
Possibly another "improvement" (excuse me that i don't open another issue for that) would be to reduce the "static TextTheme almaraiTextTheme([TextTheme? textTheme])" TextThemeBuilder functions that are probably auto generated, with a simple callback like:
Additional context
I am interested if this is an option and why it is currently made the way it is, which looks like a lot of boilerplate for every single GoogleFont for me.
The text was updated successfully, but these errors were encountered:
Package
google_fonts
Description
Is your feature request related to a problem? Please describe.
I would like to access all fonts in a simple list like "GoogleFonts.fonts".
Therefor the only function to achieve something like this is "GoogleFonts.asMap()" which returns all fonts as String/Builder Function pair.
Describe the solution you'd like
Wouldn't it be easier for the whole library to put all fonts in enumes?
like
This way, one could easily retrieve a list of all fonts, could check if a given font is valid and pass the font typesafe around instead of holding a String.
Describe alternatives you've considered
Possibly another "improvement" (excuse me that i don't open another issue for that) would be to reduce the "static TextTheme almaraiTextTheme([TextTheme? textTheme])" TextThemeBuilder functions that are probably auto generated, with a simple callback like:
Additional context
I am interested if this is an option and why it is currently made the way it is, which looks like a lot of boilerplate for every single GoogleFont for me.
The text was updated successfully, but these errors were encountered: