bernaferrari / FigmaToCode

Generate responsive pages and apps on HTML, Tailwind, Flutter and SwiftUI.
https://www.figma.com/community/plugin/842128343887142055
GNU General Public License v3.0
3.58k stars 262 forks source link

[Flutter] Print name of Typography and color #74

Open SuhwanCha opened 1 year ago

SuhwanCha commented 1 year ago

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,
    ),
)