ThemeBuilder class abstract final

Generates a complete Material 3 ThemeData from a single seed color, with optional overrides for font, border radius, and density.

MaterialApp(
  theme: ThemeBuilder.fromSeed(
    seedColor: Color(0xFF6366F1),
    fontFamily: 'Poppins',
    borderRadius: 12,
  ),
  darkTheme: ThemeBuilder.fromSeed(
    seedColor: Color(0xFF6366F1),
    isDark: true,
  ),
)

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

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

Static Methods

fromSeed({required Color seedColor, bool isDark = false, FontConfig? fontConfig, String fontFamily = 'Inter', TextDirection direction = TextDirection.ltr, double borderRadius = 12.0, VisualDensity? visualDensity}) → ThemeData
Generates a ThemeData from a seed color.