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

[FEATURE REQUEST] Allow passing 'package' parameter to specify where textstyle font family comes from #35

Open
frederikstonge opened this issue Jun 18, 2024 · 2 comments

Comments

@frederikstonge
Copy link
Collaborator

This is a bit specific, but I'm generating my tokens in a library to be included in more than one project. Right now, the textstyle is specifying a font family, and I want to include the font within my library. This means that my textstyle needs to have the package property set to tell flutter where to get the font from.

@frederikstonge
Copy link
Collaborator Author

I did a bit of research, and transformers are created as static items, so I don't see how we can pass arguments to it.

@freemansoft
Copy link
Collaborator

Convert to dependency injection?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants