Skip to content

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

@haashem

Description

@haashem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions