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
By default google_font is stored in project root dir google_fonts but the GoldenToolkit is always loading the font from assets/fonts .
When using the google_fonts it is not required to enable fonts in pubspec.yaml file , we just have to add the google_fonts folder to assets.
solution :
create assets/fonts and add your google_font
The text was updated successfully, but these errors were encountered:
the code for loading fonts is not terribly complex... have you tried writing a function to iterate over the font assets and loading them programmatically in your test setup?
I would happily accept a PR that introduces a new function to loadGoogleFonts(); but it is not something I'll probably prioritize for an enhancement in the near future otherwise.
This PR converts the variables `lightTheme` and `darkTheme` to the
methods `getLightTheme()` and `getDarkTheme()`. The reason for this is
that in golden tests outside of `/app`, the `golden_toolkit` package is
unable to load our "Rubik" font (see
eBay/flutter_glove_box#158). With this method,
the golden tests can override the font family with a font like "Roboto".
By default google_font is stored in project root dir
google_fonts
but the GoldenToolkit is always loading the font fromassets/fonts
.When using the
google_fonts
it is not required to enable fonts inpubspec.yaml
file , we just have to add thegoogle_fonts
folder to assets.solution :
create
assets/fonts
and add yourgoogle_font
The text was updated successfully, but these errors were encountered: