VoTypography class abstract

Blueprint contract for typography.

Every style has a default. Extend this, override the font families or styles you need, then return it from VoTheme.typography. Every style here is applied to Material TextTheme by VoTheme.build.

VoTheme.build injects brightness-resolved colors and sizes through copyWith, so use colors.textPrimary etc. directly in your styles.

Inheritance
Implementers

Constructors

VoTypography({VoColors? colors, VoSizes? sizes})
const

Properties

bodyFontFamily → String
no setter
bodyLarge → TextStyle
no setter
bodyMedium → TextStyle
no setter
bodySmall → TextStyle
no setter
caption → TextStyle
no setter
captionMedium → TextStyle
no setter
captionSmall → TextStyle
no setter
colors → VoColors
no setter
displayLarge → TextStyle
no setter
displayMedium → TextStyle
no setter
displaySmall → TextStyle
no setter
hashCode → int
The hash code for this object.
no setterinherited
headlineFontFamily → String
no setter
headlineLarge → TextStyle
no setter
headlineMedium → TextStyle
no setter
headlineSmall → TextStyle
no setter
labelLarge → TextStyle
no setter
labelMedium → TextStyle
no setter
labelSmall → TextStyle
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizes → VoSizes
no setter
titleLarge → TextStyle
no setter
titleMedium → TextStyle
no setter
titleSmall → TextStyle
no setter
type → Object
The extension's type.
no setterinherited

Methods

copyWith({VoColors? colors, VoSizes? sizes}) → VoTypography
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant VoTypography? other, double t) → VoTypography
Linearly interpolate with another ThemeExtension object.
override
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