EufemiaTextStyle class
A text style from the Eufemia design system.
- Available Extensions
- Annotations
- @freezed
Constructors
- EufemiaTextStyle({@nullable Color color, @nullable TextAlign textAlign, @nullable TextDirection textDirection, @nullable TextDecorationStyle textDecorationStyle, @nullable double textDecorationThickness, @nullable Color textDecorationColor, @nullable EufemiaTextPredefinedStyle predefinedStyle, @nullable TextDecoration textDecoration, @nullable double letterSpacing, @nullable EufemiaFontSize size, @nullable EufemiaFontWeight weight, @nullable EufemiaFontFamily family, @nullable EufemiaLineHeight height, @nullable EufemiaTextStyleWidgetBuilder builder})
-
Default factory.
constfactory
- EufemiaTextStyle.body({Color color, EufemiaFontSize size = EufemiaFontSize.body, EufemiaLineHeight height = EufemiaLineHeight.body, EufemiaFontWeight weight = EufemiaFontWeight.normal})
-
Creates a default Eufemia body style.
factory
- EufemiaTextStyle.bodyEmphasized({Color color, EufemiaFontSize size = EufemiaFontSize.body, EufemiaLineHeight height = EufemiaLineHeight.body, EufemiaFontWeight weight = EufemiaFontWeight.emphasized})
-
Creates a default Eufemia emphasized body style.
factory
-
Creates a default Eufemia button style.
factory
-
Creates a default Eufemia emphasized button style.
factory
-
Creates a default Eufemia small button style.
factory
-
Creates a default Eufemia emphasized small button style.
factory
- EufemiaTextStyle.caption({Color color, EufemiaFontSize size = EufemiaFontSize.caption, EufemiaLineHeight height = EufemiaLineHeight.caption, EufemiaFontWeight weight = EufemiaFontWeight.normal})
-
Creates a default Eufemia caption style.
factory
- EufemiaTextStyle.captionEmphasized({Color color, EufemiaFontSize size = EufemiaFontSize.caption, EufemiaLineHeight height = EufemiaLineHeight.caption, EufemiaFontWeight weight = EufemiaFontWeight.emphasized})
-
Creates a default Eufemia emphasized caption style.
factory
- EufemiaTextStyle.footnote({Color color, EufemiaFontSize size = EufemiaFontSize.footnote, EufemiaLineHeight height = EufemiaLineHeight.footnote, EufemiaFontWeight weight = EufemiaFontWeight.normal})
-
Creates a default Eufemia footnote style.
factory
- EufemiaTextStyle.footnoteEmphasized({Color color, EufemiaFontSize size = EufemiaFontSize.footnote, EufemiaLineHeight height = EufemiaLineHeight.footnote, EufemiaFontWeight weight = EufemiaFontWeight.emphasized})
-
Creates a default Eufemia emphasized footnote style.
factory
- EufemiaTextStyle.subhead({Color color, EufemiaFontSize size = EufemiaFontSize.subhead, EufemiaLineHeight height = EufemiaLineHeight.caption, EufemiaFontWeight weight = EufemiaFontWeight.normal})
-
Creates a default Eufemia subhead style.
factory
- EufemiaTextStyle.subheadEmphasized({Color color, EufemiaFontSize size = EufemiaFontSize.subhead, EufemiaLineHeight height = EufemiaLineHeight.subhead, EufemiaFontWeight weight = EufemiaFontWeight.emphasized})
-
Creates a default Eufemia emphasized subhead style.
factory
- EufemiaTextStyle.title({Color color, EufemiaFontSize size = EufemiaFontSize.title, EufemiaLineHeight height = EufemiaLineHeight.title, EufemiaFontWeight weight = EufemiaFontWeight.normal})
-
Creates a default Eufemia title tyle.
factory
- EufemiaTextStyle.titleDemi({Color color, EufemiaFontSize size = EufemiaFontSize.title, EufemiaLineHeight height = EufemiaLineHeight.title, EufemiaFontWeight weight = EufemiaFontWeight.demi})
-
Creates a default Eufemia demi title style.
factory
- EufemiaTextStyle.titleEmphasized({Color color, EufemiaFontSize size = EufemiaFontSize.title, EufemiaLineHeight height = EufemiaLineHeight.title, EufemiaFontWeight weight = EufemiaFontWeight.emphasized})
-
Creates a default Eufemia emphasized title style.
factory
- EufemiaTextStyle.titleLarge({Color color, EufemiaFontSize size = EufemiaFontSize.titleLarge, EufemiaLineHeight height = EufemiaLineHeight.titleLarge, EufemiaFontWeight weight = EufemiaFontWeight.normal})
-
Creates a default Eufemia large title style.
factory
- EufemiaTextStyle.titleMedium({Color color, EufemiaFontSize size = EufemiaFontSize.titleMedium, EufemiaLineHeight height = EufemiaLineHeight.titleMedium, EufemiaFontWeight weight = EufemiaFontWeight.normal})
-
Creates a default Eufemia medium title style.
factory
- EufemiaTextStyle.titleMediumEmphasized({Color color, EufemiaFontSize size = EufemiaFontSize.titleMedium, EufemiaLineHeight height = EufemiaLineHeight.titleMedium, EufemiaFontWeight weight = EufemiaFontWeight.emphasized})
-
Creates a default Eufemia emphasized medium title style.
factory
Properties
- builder → Widget Function(BuildContext, Widget)
-
An optional widget builder.
@nullable, read-only, inherited
- color → Color
-
The text color.
@nullable, read-only, inherited
-
copyWith
→ $EufemiaTextStyleCopyWith<
EufemiaTextStyle> -
read-only, inherited
- family → EufemiaFontFamily
-
The Eufemia-specific font family.
@nullable, read-only, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- height → EufemiaLineHeight
-
The eufemia-speicfic line height.
@nullable, read-only, inherited
- letterSpacing → double
-
The spacing between each letter of the text.
@nullable, read-only, inherited
- predefinedStyle → EufemiaTextPredefinedStyle
-
The predefined Eufemia text style, if any.
@nullable, read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- size → EufemiaFontSize
-
The Eufemia-specific font size.
@nullable, read-only, inherited
- textAlign → TextAlign
-
The text alignment.
@nullable, read-only, inherited
- textDecoration → TextDecoration
-
The text decoration, if any.
@nullable, read-only, inherited
- textDecorationColor → Color
-
The color of the textDecorationStyle
@nullable, read-only, inherited
- textDecorationStyle → TextDecorationStyle
-
The text decoration style.
@nullable, read-only, inherited
- textDecorationThickness → double
-
The thickness of the textDecorationStyle
@nullable, read-only, inherited
- textDirection → TextDirection
-
The text direction.
@nullable, read-only, inherited
- weight → EufemiaFontWeight
-
The Eufemia-specific font weight.
@nullable, read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited