SACTheme class

Swiss Army Component Theme Factory

Provides light and dark themes with optional customization.

Basic usage (with defaults):

MaterialApp(
  theme: SACTheme.light(),
  darkTheme: SACTheme.dark(),
);

Custom colors:

final config = SACThemeConfig(
  primary: Colors.blue,
  secondary: Colors.amber,
  scaffoldBackgroundLight: Colors.grey[50],
);

MaterialApp(
  theme: SACTheme.light(config),
  darkTheme: SACTheme.dark(config),
);

Constructors

SACTheme()

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

dark([SACThemeConfig? config]) ThemeData
Generate a dark theme with optional custom colors
light([SACThemeConfig? config]) ThemeData
Generate a light theme with optional custom colors