LeanAppTheme class
This class represents the theme of the app. Use this class if you want to manipulate the LeanAppTheme elements.
Constructors
- LeanAppTheme()
- The constructor needs: A ColorSet that holds all the colors of LeanAppTheme . A TextSizeSet that holds all the heading font sizes of LeanAppTheme. A TextSizeSet that holds all the regular text font sizes of LeanAppTheme.
Properties
- backgroundPrimary → Color
-
The primary color of the background.
no setteroverride
- backgroundSecondary → Color
-
The secondary color of the background.
no setteroverride
-
boxShadow
→ List<
BoxShadow> -
This is a standardized box shadow for every box (Button, Containers etc.).
no setterinherited
- colorSet → ColorSet
-
The required ColorSet that holds all the colors.
finalinherited
- defaultButtonColor → Color
-
The default color for LeanButton and LeanCircleButton.
no setteroverride
- defaultContainerColor → Color
-
The default color of LeanContainer.
no setteroverride
- defaultContainerPadding → EdgeInsetsGeometry
-
The default padding of LeanContainer.
no setteroverride
- defaultCrossAxisAlignmentForSpacedColumn → CrossAxisAlignment
-
The default CrossAxisAlignment for LeanSpacedColumn.
no setteroverride
- defaultCrossAxisAlignmentForSpacedRow → CrossAxisAlignment
-
The default CrossAxisAlignment for LeanSpacedRow.
no setteroverride
- defaultFontSize → double
-
The default font size of a text.
no setteroverride
- defaultHeadingSize → double
-
The default font size of a heading.
no setteroverride
- defaultIconColor → Color
-
The default Icon.color for LeanIcon.
no setteroverride
- defaultIconSize → double
-
The default Icon.size for LeanIcon.
no setteroverride
- defaultInputFieldColor → Color
-
The default color for
LeanInputField
.no setteroverride - defaultMainAxisAlignmentForSpacedColumn → MainAxisAlignment
-
The default MainAxisAlignment for LeanSpacedColumn.
no setteroverride
- defaultMainAxisAlignmentForSpacedRow → MainAxisAlignment
-
The default MainAxisAlignment for LeanSpacedRow.
no setteroverride
- defaultTextColor → Color
-
The default color of a text.
no setteroverride
- foregroundPrimary → Color
-
The primary color of the foreground.
no setteroverride
- foregroundSecondary → Color
-
The secondary color of the foreground.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- headingSizeSet → TextSizeSet
-
The required TextSizeSet that holds all the heading font sizes.
finalinherited
- onPrimary → Color
-
The default color for child on primary color.
no setteroverride
- onSecondary → Color
-
The default color for child on primary color.
no setteroverride
- primary → Color
-
no setteroverride
- primaryTuple → ColorTuple
-
Gets foregroundPrimary and backgroundPrimary as a ColorTuple.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondary → Color
-
no setteroverride
- secondaryTuple → ColorTuple
-
Gets foregroundSecondary and backgroundSecondary as a ColorTuple.
no setterinherited
- textSizeSet → TextSizeSet
-
The required TextSizeSet that holds all the font sizes of a text.
finalinherited
Methods
-
getColorTuple(
{bool primary = true}) → ColorTuple -
primary
== true : Gets foregroundPrimary and backgroundPrimary as ColorTuple.primary
== false : Gets foregroundSecondary and backgroundSecondary as ColorTuple.inherited -
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