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
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
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
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