ArnaTextTheme class
Arna text theme.
To obtain the current text theme, call ArnaTheme.of with the current BuildContext and read the ArnaThemeData.textTheme property.
- Mixed in types
- Annotations
Constructors
Properties
- body → TextStyle?
-
The TextStyle of general text content for Arna widgets.
no setter
-
The TextStyle of buttons.
no setter
-
The TextStyle of captions.
no setter
- display → TextStyle?
-
The TextStyle of displays.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- headline → TextStyle?
-
The TextStyle of headlines.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtitle → TextStyle?
-
The TextStyle of subtitles.
no setter
- title → TextStyle?
-
The TextStyle of titles.
no setter
Methods
-
apply(
{String? fontFamily, double fontSizeFactor = 1.0, double fontSizeDelta = 0.0, Color? bodyColor, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle}) → ArnaTextTheme - Creates a copy of this text theme but with the given field replaced in each of the individual text styles.
-
copyWith(
{TextStyle? displayTextStyle, TextStyle? headlineTextStyle, TextStyle? titleTextStyle, TextStyle? bodyTextStyle, TextStyle? subtitleTextStyle, TextStyle? buttonTextStyle, }) → ArnaTextTheme - Creates a copy of this text theme but with the given fields replaced with the new values.
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
merge(
ArnaTextTheme? other) → ArnaTextTheme -
Creates a new ArnaTextTheme where each text style from this object has been merged with the matching text style
from the
other
object. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
ArnaTextTheme? a, ArnaTextTheme? b, double t) → ArnaTextTheme - Linearly interpolate between two text themes.