Skip to content
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

fix: snapshots unable to load fonts from same package #142

Open
1 task done
haashem opened this issue Feb 1, 2025 · 0 comments
Open
1 task done

fix: snapshots unable to load fonts from same package #142

haashem opened this issue Feb 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@haashem
Copy link

haashem commented Feb 1, 2025

Is there an existing issue for this?

  • I have searched the existing issues.

Version

0.11.0

Description

I have created a designs system package which includes common UI widgets, used everywhere else in the app. Texts using custom fonts which reside in the design_system package and I must refer package name in the TextStyle, so the text will be loaded and rendered in the main app, otherwise it fallback to default font.

Now the issue is if I refer package name, Alchemist unable to load and render fonts for the goldens in the design_system package!

Actual Expected

Steps to reproduce

Sample project
design_system.zip

1- Download sample app
2- Add the design_system package name in the Button widget text style,
3- run flutter test --update-goldens

Expected behavior

4- Expected to render the custom fonts, but just boxes are rendered instead of the text!

Screenshots

No response

Additional context and comments

No response

@haashem haashem added the bug Something isn't working label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant