mark-nicepants / figma2flutter

Converts design token json files to flutter
Apache License 2.0
17 stars 16 forks source link

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

Open frederikstonge opened 2 weeks ago

frederikstonge commented 2 weeks ago

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 commented 1 week ago

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 commented 6 days ago

Convert to dependency injection?