mark-nicepants / figma2flutter

Converts design token json files to flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

frederikstonge opened this issue · 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.

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.

Convert to dependency injection?