ThemeGenerator class

A generator for creating Flutter theme files from Figma variables.

This class handles the process of:

  • Fetching variables from Figma
  • Converting variables to Flutter-compatible formats
  • Generating theme files with color, typography, and spacing variables
  • Creating a theme data class for easy consumption in Flutter apps

Constructors

ThemeGenerator(FigmaClient _client, String _outputDir, bool _verbose)
Creates a new ThemeGenerator instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate() Future<bool>
Generates theme files from Figma variables.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited