GrxTextTheme class

A TextTheme used by Material Design to automatically apply our Design System's TextStyle.

Inheritance

Constructors

GrxTextTheme()
Creates a Design System's TextTheme.
const

Properties

bodyLarge TextStyle?
Largest of the body styles.
finalinherited
bodyMedium TextStyle?
Middle size of the body styles.
finalinherited
bodySmall TextStyle?
Smallest of the body styles.
finalinherited
displayLarge TextStyle?
Largest of the display styles.
finalinherited
displayMedium TextStyle?
Middle size of the display styles.
finalinherited
displaySmall TextStyle?
Smallest of the display styles.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headlineLarge TextStyle?
Largest of the headline styles.
finalinherited
headlineMedium TextStyle?
Middle size of the headline styles.
finalinherited
headlineSmall TextStyle?
Smallest of the headline styles.
finalinherited
labelLarge TextStyle?
Largest of the label styles.
finalinherited
labelMedium TextStyle?
Middle size of the label styles.
finalinherited
labelSmall TextStyle?
Smallest of the label styles.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
titleLarge TextStyle?
Largest of the title styles.
finalinherited
titleMedium TextStyle?
Middle size of the title styles.
finalinherited
titleSmall TextStyle?
Smallest of the title styles.
finalinherited

Methods

apply({String? fontFamily, List<String>? fontFamilyFallback, String? package, double fontSizeFactor = 1.0, double fontSizeDelta = 0.0, double letterSpacingFactor = 1.0, double letterSpacingDelta = 0.0, double wordSpacingFactor = 1.0, double wordSpacingDelta = 0.0, double heightFactor = 1.0, double heightDelta = 0.0, Color? displayColor, Color? bodyColor, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle}) TextTheme
Creates a copy of this text theme but with the given field replaced in each of the individual text styles.
inherited
copyWith({TextStyle? displayLarge, TextStyle? displayMedium, TextStyle? displaySmall, TextStyle? headlineLarge, TextStyle? headlineMedium, TextStyle? headlineSmall, TextStyle? titleLarge, TextStyle? titleMedium, TextStyle? titleSmall, TextStyle? bodyLarge, TextStyle? bodyMedium, TextStyle? bodySmall, TextStyle? labelLarge, TextStyle? labelMedium, TextStyle? labelSmall}) TextTheme
Creates a copy of this text theme but with the given fields replaced with the new values.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
merge(TextTheme? other) TextTheme
Creates a new TextTheme where each text style from this object has been merged with the matching text style from the other object.
inherited
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.
inherited