ControlTheme class

Wraps ThemeData and Device to provide more settings and custom properties that are more app design specific. ControlTheme is build during ControlRoot initialization.

Constructors

ControlTheme([BuildContext? _context])

Properties

accentColorPrimary Color
no setter
accentColorSecondary Color
no setter
accentColorTertiary Color
no setter
activeColor Color
no setter
animDuration Duration
/////////////////////////////////////////////////////////////////////////////
final
animDurationFast Duration
final
animDurationSecond Duration
final
animDurationSlow Duration
final
animTransition Duration
final
assets AssetPath
getter/setter pair
backgroundColor Color
no setter
backgroundTintColor Color
no setter
barHeight double
final
buttonHeight double
final
buttonHeightSmall double
final
buttonRadius double
final
buttonRadiusSmall double
final
buttonWidth double
final
config ThemeConfig<ControlTheme>
getter/setter pair
context BuildContext
no setter
controlHeight double
final
data ThemeData
getter/setter pair
device Device
getter/setter pair
divider double
final
errorColor Color
no setter
font TextTheme
//////////////////////////////////////////////////////////////////////////
no setter
fontName String
/////////////////////////////////////////////////////////////////////////////
final
fontPrimary TextTheme
no setter
hashCode int
The hash code for this object.
no setteroverride
final
iconBounds double
final
iconLauncher double
final
iconSize double
final
iconSizeLarge double
final
iconSizeSmall double
final
inputHeight double
final
isStandalone bool
no setter
isValid bool
no setter
no setter
padding double
final
paddingExtended double
final
paddingHalf double
final
paddingHead double
final
paddingMid double
final
paddingQuad double
final
paddingQuarter double
final
paddingSection double
final
preview double
final
primaryColor Color
no setter
primaryColorDark Color
no setter
primaryColorLight Color
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme ColorScheme
no setter
secondaryColor Color
no setter
tertiaryColor Color
no setter
thumb double
final
toolbarAreaSize Size
//////////////////////////////////////////////////////////////////////////
no setter

Methods

changeTheme(dynamic key, {bool preferred = true}) ControlTheme
invalidate(BuildContext? context) ThemeData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyTheme() → void
pushTheme(ThemeData theme) ControlTheme
resetPreferredTheme({bool loadSystemTheme = false}) → void
setDefaultTheme() → void
setSystemTheme() → void
toString() String
A string representation of this object.
inherited

Operators

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