ExpressiveTextTheme class

The type scale of one theme: the 30 styles by ExpressiveTypeKey (of) and by name.

A brand's typeface replaces the families; the faces Expressive bundles (Roboto Flex and Jost) come from where it bundles them, an app's own from the app's assets, or from fontPackage:

final type = const ExpressiveTextTheme().copyWith(textFamily: 'Inter');
Mixed-in types
Annotations

Constructors

ExpressiveTextTheme({ExpressiveLanguageHeight languageHeight = ExpressiveLanguageHeight.englishLike, String displayFamily = family, String textFamily = family, String? fontPackage})
A type scale of the given languageHeight.
const

Properties

bodyLarge → TextStyle
Body, large.
no setter
bodyLargeEmphasized → TextStyle
Body, large, emphasized.
no setter
bodyMedium → TextStyle
Body, medium.
no setter
bodyMediumEmphasized → TextStyle
Body, medium, emphasized.
no setter
bodySmall → TextStyle
Body, small.
no setter
bodySmallEmphasized → TextStyle
Body, small, emphasized.
no setter
displayFamily → String
The family used for display and headline styles.
final
displayLarge → TextStyle
Display, large.
no setter
displayLargeEmphasized → TextStyle
Display, large, emphasized.
no setter
displayMedium → TextStyle
Display, medium.
no setter
displayMediumEmphasized → TextStyle
Display, medium, emphasized.
no setter
displaySmall → TextStyle
Display, small.
no setter
displaySmallEmphasized → TextStyle
Display, small, emphasized.
no setter
fontPackage → String?
The package that bundles displayFamily and textFamily when they are an app's faces from a package of its own ('brand_fonts'); null when the app bundles them in its assets. The faces Expressive bundles (Roboto Flex, Jost) always come from expressiveFontPackage, whatever this names.
final
hashCode → int
The hash code for this object.
no setteroverride
headlineLarge → TextStyle
Headline, large.
no setter
headlineLargeEmphasized → TextStyle
Headline, large, emphasized.
no setter
headlineMedium → TextStyle
Headline, medium.
no setter
headlineMediumEmphasized → TextStyle
Headline, medium, emphasized.
no setter
headlineSmall → TextStyle
Headline, small.
no setter
headlineSmallEmphasized → TextStyle
Headline, small, emphasized.
no setter
labelLarge → TextStyle
Label, large.
no setter
labelLargeEmphasized → TextStyle
Label, large, emphasized.
no setter
labelMedium → TextStyle
Label, medium.
no setter
labelMediumEmphasized → TextStyle
Label, medium, emphasized.
no setter
labelSmall → TextStyle
Label, small.
no setter
labelSmallEmphasized → TextStyle
Label, small, emphasized.
no setter
languageHeight → ExpressiveLanguageHeight
The language-height category the line heights follow.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textFamily → String
The family used for title, body and label styles.
final
titleLarge → TextStyle
Title, large.
no setter
titleLargeEmphasized → TextStyle
Title, large, emphasized.
no setter
titleMedium → TextStyle
Title, medium.
no setter
titleMediumEmphasized → TextStyle
Title, medium, emphasized.
no setter
titleSmall → TextStyle
Title, small.
no setter
titleSmallEmphasized → TextStyle
Title, small, emphasized.
no setter

Methods

copyWith({ExpressiveLanguageHeight? languageHeight, String? displayFamily, String? textFamily, String? fontPackage}) → ExpressiveTextTheme
This scale with the supplied settings replaced.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
forLocale(Locale locale) → ExpressiveTextTheme
This scale in locale's language-height category.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(ExpressiveTypeKey key) → TextStyle
The style of key.
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(ExpressiveTextTheme a, ExpressiveTextTheme b, double t) → ExpressiveTextTheme
The nearest scale: font families and the locale do not interpolate.

Constants

family → const String
The bundled variable Roboto Flex's family (the module's pubspec), in expressiveFontPackage when a package bundles it.