AFFundamentalThemeState class

Fundamental values that contribute to theming in the app.

An AFFundamentalThemeState provides fundamental values like colors, fonts, and measurements which determine the basic properties of the UI. It is the place where you store and manipulate data values that contribute to a them.

AFFunctionalTheme doesn't have its own mutable data values, instead it provides a functional wrapper that creates conceptual components in the UI based on the values in a fundamental theme.

Constructors

AFFundamentalThemeState({required AFFundamentalDeviceTheme device, required AFFundamentalThemeArea area, required AFSpacing marginSpacing, required AFSpacing paddingSpacing, required AFBorderRadius borderRadius, required ThemeData? themeData})

Properties

area AFFundamentalThemeArea
final
areaList List<String>
no setter
borderRadius AFBorderRadius
final
colorBackground Color
no setter
colorError Color
no setter
colorOnBackground Color
no setter
colorOnError Color
no setter
colorOnPrimary Color
no setter
colorOnSurface Color
no setter
colorPrimary Color
no setter
colorPrimaryLight Color
no setter
colorSchemeBrightness Brightness
This indicates whether this is a bright or dark color scheme.
no setter
colorSecondary Color
no setter
colorSurface Color
no setter
colorTapableText Color?
no setter
device AFFundamentalDeviceTheme
final
deviceFormFactor AFFormFactor
no setter
deviceLocale Locale
no setter
deviceOrientation Orientation
The orientation of the device.
no setter
hashCode int
The hash code for this object.
no setterinherited
margin AFSpacing
no setter
marginSpacing AFSpacing
final
padding AFSpacing
no setter
paddingSpacing AFSpacing
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTranslationIds bool
no setter
size1 double
no setter
size2 double
no setter
size3 double
no setter
size4 double
no setter
size5 double
no setter
styleOnCard TextTheme
no setter
styleOnPrimary TextTheme
no setter
styleOnSecondary TextTheme
no setter
supportedLocales List<Locale>
no setter
themeData ThemeData?
getter/setter pair
themeDataActive ThemeData
no setter
themeDataDark ThemeData
no setter
themeDataLight ThemeData
no setter

Methods

attrsForArea(String area) List<AFThemeID>
background(AFThemeID? id) Color
color(AFThemeID? id) Color?
copyWith({AFFundamentalDeviceTheme? device, AFFundamentalThemeArea? area, ThemeData? themeData}) AFFundamentalThemeState
deviceHasFormFactor({AFFormFactor? atLeast, AFFormFactor? atMost, Orientation? withOrientation}) bool
findValue<TReturn extends Object>(AFThemeID id) → TReturn?
flag(AFThemeID id) int
Used for flags that determine UI layout. For example, maybe a 'compact' vs 'spacious' flag.
foreground(AFThemeID? id) Color
icon(dynamic idOrValue, {dynamic iconColor, dynamic iconSize}) Widget?
marginCustom({int? horizontal, int? vertical, int? top, int? bottom, int? left, int? right, int? all}) EdgeInsets
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optionsForType(AFThemeID id) List?
paddingCustom({int? horizontal, int? vertical, int? top, int? bottom, int? left, int? right, int? all}) EdgeInsets
resolve() → void
reviseOverrideThemeValue(AFThemeID id, dynamic value) AFFundamentalThemeState
size(AFThemeID? id, {double scale = 1.0}) double?
spacingCustom({required AFSpacing spacing, int? horizontal, int? vertical, int? top, int? bottom, int? left, int? right, int? all}) EdgeInsets
textStyle(dynamic idOrTextStyle) TextStyle?
toString() String
A string representation of this object.
inherited
translate({AFWidgetID? wid, Object? text}) String
updateThemeData(ThemeData td) → void
weight(dynamic id) FontWeight?

Operators

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