-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to load font packages/widgetbook/Nunito #206
Comments
Same behavior here |
Thanks @LeeHigginsExeter and @heavybeard for reporting this issue. While the warnings are certainly annoying, does this make Widgetbook unusable for you? I'm assuming Flutter will default to another font in such a case. |
I will work on a fix in a few minutes, I have an idea because I faced the same problem with an app a few months ago. Anyway Widgetbook is usable for me. |
Ok, it's great that it's still usable. I assume the problem is that the fonts are defined in the package and are not properly 'exported' by the package which results in the missing fonts package. It would be great if you could fix this - we always love to see contributions 👍🏻 |
Please have a look at the PR @jenshor , Widgetbook still works, but as you say, this warning is very annoying... :) |
@heavybeard @momrak We're currently busy doing other awesome stuff, but we'll merge the PR within the next week. We highly appreciate you, the community, in making Widgetbook better 💙 Sorry for the wait. |
@heavybeard did this fix work for you? I still get the same |
Oh wow, yeah... I still have the same message in the console. I cannot work on it in next days, can you try to fix it @momrak? I investigate a little bit and maybe here it is a fix from flutter, but it seems a verbose fix → https://docs.flutter.dev/cookbook/design/package-fonts#1-add-a-font-to-a-package
And the application can now use the font with
|
Using |
I'll reopen so we can investigate again. Before deployment I checked if this works and it did but there seems to be a more difficult scenario. While google_fonts is great, I'd refrain from adding it as a dependency because it every package dependency can make it more difficult to use widgetbook. |
I have the same issue. And this ticket is marked as included in |
The discord users |
This font was removed in #744 |
Description
Using the example code to create an app I get missing font errors in the console.
(it works but I think the fonts are not the ones intended)
Steps To Reproduce
...
Failed to load font packages/widgetbook/Nunito at assets/packages/widgetbook/google_fonts/Nunito-Black.ttf
Verify that assets/packages/widgetbook/google_fonts/Nunito-Black.ttf contains a valid font.
...
Expected Behavior
Use intended fonts and not print warnings
Additional Context
I tried adding the google fonts dependency to the app, but still had the issue.
The text was updated successfully, but these errors were encountered: