Variables2Flutter
Transform your local variables into Flutter code quickly and easily
Plugin Preview
About this plugin
Flutter Code Generator for Figma
Transform your Figma design variables into clean, organized Flutter code effortlessly with the Flutter Code Generator plugin. This powerful tool seamlessly converts your local variables, including Colors, Strings, Numbers, and Booleans, into structured Flutter code, ready to integrate into your development workflow.
Main Features:
- Exports Figma Variables (Color, String, Boolean, Number).
- Exports TextStyles and Shadows, and works with Figma Variables.
- Exports Local Colors, Linear Gradients, and Radial Gradients, all of which work with Figma Variables.
- Generates easily accessible Classes without having to use Context or tools.
- No need to create logic to rebuild the screen when changing from Light to Dark (or the mode that is in the Figma collection).
- Automatically creates documentation when generating the code.
- In addition to having customization options for generating the code.
- AND THE BEST: IT HAS AN ANIMATION EFFECT WHEN SWITCHING THEMES!!!! 😎
Key Features:
- Automatic Code Generation: Instantly convert Figma's local variables into Flutter code with just a few clicks.
- Variable Support: Includes support for Colors, Strings, Numbers, and Booleans, ensuring a comprehensive export of your design tokens.
- Preset Modes: Utilize preset modes to customize how variables are named and categorized in the generated code, matching your project’s naming conventions and coding standards.
- Easy Integration: The generated code is organized and ready to be integrated into your Flutter project, streamlining the design-to-development process.
- Customizable Naming: Adapt the output to your needs with customizable naming conventions for variables, making the code more intuitive and aligned with your project's requirements.
Quick start:
- Open design in figma
- Open plugin Variables2Flutter
- On the plugin screen, make your adjustments to your preference.
- Click in generate
- Copy code generate
- Open new dart file in your project
- Paste code generate
- On top of your MaterialApp add FigmaTheme widget
- In the Figma Theme widget there are static functions for you to change the "Modes" of the collections' themes.
- Each collection will have a get variable in the file for you to retrieve the data, and when the collection changes mode, the widget will rebuild automatically. Example of a get variable:
Simplify your design-to-code workflow with the Flutter Code Generator for Figma and enhance your productivity by bridging the gap between design and development.
Tags: Figma, Variables to Flutter, Figma to Flutter, Styles to Flutter, Figma code to Flutter, generate code flutter, figma variables to flutter code, flutter export, convert, theme, styles,FigmaPlugin, Flutter, CodeGenerator, DesignToCode, VariableExport, FlutterDevelopment, FigmaToFlutter, DesignTokens, CodeIntegration, UItoCode, FigmaTools, FlutterUI, DesignSystem, VariableConversion, PluginForDevelopers
Plugin Details
Version | 8 |
---|---|
Created | September 11, 2024 |
Last Updated | October 5, 2024 |
Category | Import & export plugins |
Creator | Rodrigo Moraes |
Stats | 29 installs, 12 likes |
Pricing | Free |
Technical Details
- API:1.0.0
- UI:ui.html
- main:dist/code.js
- Document Access:dynamic-page
- Editor Types:figma
- Allowed Domains:
- none
More Like This
Discover other plugins in the Import & export plugins category.