figma2flutter icon indicating copy to clipboard operation
figma2flutter copied to clipboard

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

Open frederikstonge opened this issue 1 year ago • 2 comments

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 avatar Jun 18 '24 10:06 frederikstonge

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.

frederikstonge avatar Jun 19 '24 14:06 frederikstonge

Convert to dependency injection?

freemansoft avatar Jun 26 '24 12:06 freemansoft