AFAppFundamentalThemeAreaBuilder class

Inheritance
Mixed-in types

Constructors

AFAppFundamentalThemeAreaBuilder({required Map<AFThemeID, List> optionsForType})
AFAppFundamentalThemeAreaBuilder.create()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
optionsForType Map<AFThemeID, List>
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportedLocalesApp List<Locale>
finalinherited
themeDark ThemeData?
getter/setter pair
themeLight ThemeData?
getter/setter pair
translationSet Map<Locale, AFTranslationSet>
finalinherited
values Map<AFThemeID, AFFundamentalThemeValue>
finalinherited

Methods

background(AFThemeID? id, Brightness brightness) Color
inherited
color(dynamic id) Color?
inherited
colors(AFThemeID id) AFColorPairing
inherited
create() AFFundamentalThemeArea
createBorderRadius() AFBorderRadius
createMarginSpacing() AFSpacing
createPaddingSpacing() AFSpacing
defaultColors(AFThemeID b, AFThemeID f, AFThemeID bd, AFThemeID fd) AFColorPairing
defaultTextStyle(AFThemeID c, AFThemeID fs, AFThemeID fw) AFTextStyle
flag(AFThemeID id) int
inherited
foreground(AFThemeID? id, Brightness brightness) Color
inherited
icon(dynamic idOrIcon, {dynamic iconColor, dynamic iconSize}) Widget?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAfibFundamentals({List<double> marginSizes = bootstrapStandardMargins, List<double> paddingSizes = bootstrapStandardPadding, List<double> borderRadiusSizes = bootstrapStandardBorderRadius, IconData iconBack = Icons.arrow_back, IconData iconNavDown = Icons.chevron_right, Color colorTapableText = Colors.blue, AFConvertSizeToFormFactorDelegate convertFormFactor = AFAppFundamentalThemeAreaBuilder.convertFormFactor, Color? colorAlert, Color colorOnAlert = Colors.white}) → void
The app must call this method to establish some fundamental theme values that both flutter and AFib expect.
setFlutterFundamentals({required ColorScheme colorSchemeLight, required ColorScheme colorSchemeDark, TextTheme? textThemeLight, TextTheme? textThemeDark}) → void
The app must call this method, or setFundamentalThemeData in order to establish the basic theme of the app.
setFundamentalThemeData({ThemeData? themeLight, ThemeData? themeDark}) → void
Most apps should use setFlutterFundamentals, but this method gives you more control to create the theme data exactly as you wish.
setOptionsForType(AFThemeID id, List values) → void
Used to specify a list of string values that can be selected in the test drawer/theme panel for a given AFThemeID.
inherited
setTranslations(Locale locale, Map<dynamic, String> translations) → void
inherited
setValue(AFThemeID id, dynamic value, {AFCreateDynamicDelegate? defaultCalculation, bool notNull = true}) → void
Set a fundamental value.
inherited
setValues(Map<AFThemeID, dynamic> toSet) → void
Use to set multiple values, usually from a statically declared map.
inherited
size(dynamic id, {double scale = 1.0}) double?
inherited
textStyle(dynamic idOrTextStyle) TextStyle?
inherited
toString() String
A string representation of this object.
inherited
translate({AFWidgetID? wid, Object? text, required Locale locale}) String?
inherited
translation({Object? text, required Locale locale}) String?
override
validate() → void
override
value(AFThemeID? id) → dynamic
override
weight(dynamic id) FontWeight?
inherited

Operators

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

Static Methods

convertFormFactor(Size size) AFFormFactor