ThemeConfig class

Configuration for DynamikTheme.

Constructors

ThemeConfig({required ColorScheme lightScheme, required ColorScheme darkScheme, required ThemeState defaultThemeState, bool? useMaterial3, TextTheme? textTheme, ThemeData? builder(ThemeData themeData)?})
Configuration for DynamikTheme.
const

Properties

builder ThemeData? Function(ThemeData themeData)?
Adds furter customization on ThemeData.
final
darkScheme ColorScheme
Color scheme for dark theme.
final
darkTheme ThemeData
ThemeData generated from provided config and darkScheme.
no setter
defaultThemeState ThemeState
Default ThemeState to use when theme is not saved.
final
hashCode int
The hash code for this object.
no setterinherited
lightScheme ColorScheme
Color scheme for light theme.
final
lightTheme ThemeData
ThemeData generated from provided config and lightScheme.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textTheme TextTheme?
TextTheme to be used.
final
useMaterial3 bool?
true if we want to use Material3 theme.
final

Methods

fromScheme(ColorScheme scheme) ThemeData
Create a ThemeData based on the colors in the given scheme and text styles of the optional textTheme.
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 Properties

storage ThemeStorage
Instance of ThemeStorage which will be used to persist ThemeType.
getter/setter pair