Back to Plugins
Variables to Flutter/Dart Export

Variables to Flutter/Dart Export

Export variables collections as complete set of design tokens

Plugin Preview

Variables to Flutter/Dart Export preview

About this plugin

A Figma plugin that exports design tokens (variables) to Dart code, perfect for Flutter development.


Features


- Export Variable Collections: Convert Figma variables to Dart classes

- Multi-mode Support: Handles collections with multiple modes using sealed classes

- Type Safety: Generates strongly-typed Dart code with proper Color and double types

- Alias Resolution: Automatically resolves variable aliases and references

- Copy & Download: Copy generated code to clipboard or download as a file


Generated Code Structure


Single Mode Collections


class Colors {
static const Color primary = const Color.fromARGB(255, 13, 153, 255);
static const double borderRadius = 8.0;
}


Multi-Mode Collections


sealed class Colors {
const Colors();

static const Colors light = ColorsLight();
static const Colors dark = ColorsDark();

Color get primary;
Color get background;
}

class ColorsLight extends Colors {
const ColorsLight();

@override
Color get primary => const Color.fromARGB(255, 13, 153, 255);

@override
Color get background => const Color.fromARGB(255, 255, 255, 255);
}

class ColorsDark extends Colors {
const ColorsDark();

@override
Color get primary => const Color.fromARGB(255, 13, 153, 255);

@override
Color get background => const Color.fromARGB(255, 18, 18, 18);
}

Plugin Details

Version4
CreatedSeptember 8, 2025
Last UpdatedNovember 18, 2025
CategoryImport & export plugins
CreatorDominik Roszkowski
Stats7 installs, 2 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:ui.html
  • main:code.js
  • Document Access:dynamic-page
  • Editor Types:
    figma
  • Allowed Domains:
    • none