FigmaToCode icon indicating copy to clipboard operation
FigmaToCode copied to clipboard

[Flutter] Print name of Typography and color

Open SuhwanCha opened this issue 1 year ago • 0 comments

In native figma code convertor, they show name of typography and color. For example

color: var(--black, #000000);

/* Material/label/large */
font-size: 18px;
font-weight: 500;
line-height: 24px;

Therefore, it would be good if the name comes out as an comments in the flutter code, like

Text(
    'Example',
    // Material/label/large
    style: TextStyle(
        color: Color(0xFF000000), // black
        fontSize: 18,
        fontWeight: FontWeight.w500,
        height: 24,
    ),
)

SuhwanCha avatar Jun 22 '23 02:06 SuhwanCha