MinThemeData class

Datos del tema de MiniUI.

Contiene toda la configuración visual del sistema de diseño: colores, tipografía, espaciado, radios de borde, sombras y animaciones.

Uso

MinTheme(
  data: MinThemeData.light(),
  child: MyApp(),
)

Para acceder al tema desde cualquier widget:

final theme = context.theme;
Container(color: theme.colors.background)

Paletas predefinidas: MinThemeData.light y MinThemeData.dark.

Constructors

MinThemeData({required MinColors colors, required MinTypography typography, MinRadiusScale radius = MinRadiusScale.defaults, MinSpacing spacing = MinSpacing.defaults, MinShadows shadows = MinShadows.defaults, MinMotion motion = MinMotion.defaults})
const
MinThemeData.dark({String? fontFamily, MinColors colors = MinColors.dark, MinRadiusScale radius = MinRadiusScale.defaults, MinSpacing spacing = MinSpacing.defaults, MinShadows shadows = MinShadows.defaults, MinMotion motion = MinMotion.defaults})
factory
MinThemeData.light({String? fontFamily, MinColors colors = MinColors.light, MinRadiusScale radius = MinRadiusScale.defaults, MinSpacing spacing = MinSpacing.defaults, MinShadows shadows = MinShadows.defaults, MinMotion motion = MinMotion.defaults})
factory

Properties

colors MinColors
final
hashCode int
The hash code for this object.
no setteroverride
motion MinMotion
final
radius MinRadiusScale
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadows MinShadows
final
spacing MinSpacing
final
typography MinTypography
final

Methods

copyWith({MinColors? colors, MinTypography? typography, MinRadiusScale? radius, MinSpacing? spacing, MinShadows? shadows, MinMotion? motion}) MinThemeData
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.
override