AppTheme class abstract

Abstract class of the theme of the app. Use this class if you want to to add another AppTheme element.

Implementers

Constructors

AppTheme({required ColorSet colorSet, required TextSizeSet headingSizeSet, required TextSizeSet textSizeSet})

Properties

backgroundPrimary Color
The primary color of the background.
no setter
backgroundSecondary Color
The secondary color of the background.
no setter
boxShadow List<BoxShadow>
This is a standardized box shadow for every box (Button, Containers etc.).
no setter
colorSet ColorSet
The required ColorSet that holds all the colors.
final
defaultButtonColor Color
The default color for LeanButton and LeanCircleButton.
no setter
defaultContainerColor Color
The default color of LeanContainer.
no setter
defaultContainerPadding EdgeInsetsGeometry
The default padding of LeanContainer.
no setter
defaultCrossAxisAlignmentForSpacedColumn CrossAxisAlignment
The default CrossAxisAlignment for LeanSpacedColumn.
no setter
defaultCrossAxisAlignmentForSpacedRow CrossAxisAlignment
The default CrossAxisAlignment for LeanSpacedRow.
no setter
defaultFontSize double
The default font size of a text.
no setter
defaultHeadingSize double
The default font size of a heading.
no setter
defaultIconColor Color
The default Icon.color for LeanIcon.
no setter
defaultIconSize double
The default Icon.size for LeanIcon.
no setter
defaultInputFieldColor Color
The default color for LeanInputField.
no setter
defaultMainAxisAlignmentForSpacedColumn MainAxisAlignment
The default MainAxisAlignment for LeanSpacedColumn.
no setter
defaultMainAxisAlignmentForSpacedRow MainAxisAlignment
The default MainAxisAlignment for LeanSpacedRow.
no setter
defaultTextColor Color
The default color of a text.
no setter
foregroundPrimary Color
The primary color of the foreground.
no setter
foregroundSecondary Color
The secondary color of the foreground.
no setter
hashCode int
The hash code for this object.
no setterinherited
headingSizeSet TextSizeSet
The required TextSizeSet that holds all the heading font sizes.
final
onPrimary Color
The default color for child on primary color.
no setter
onSecondary Color
The default color for child on primary color.
no setter
primary Color
no setter
primaryTuple ColorTuple
Gets foregroundPrimary and backgroundPrimary as a ColorTuple.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary Color
no setter
secondaryTuple ColorTuple
Gets foregroundSecondary and backgroundSecondary as a ColorTuple.
no setter
textSizeSet TextSizeSet
The required TextSizeSet that holds all the font sizes of a text.
final

Methods

getColorTuple({bool primary = true}) ColorTuple
primary == true : Gets foregroundPrimary and backgroundPrimary as ColorTuple. primary == false : Gets foregroundSecondary and backgroundSecondary as ColorTuple.
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