Typography tokens — implements the Material 3 type scale.
The default font family is Inter. To use a custom font, pass it
via textTheme. The consuming app is responsible for loading the
font (via pubspec.yaml assets or the google_fonts package).
Colors are intentionally omitted here; they are derived automatically by Flutter from ColorScheme.onSurface and related roles at runtime.
Usage:
// In BaseTheme
textTheme: AppTypography.textTheme(),
// With custom font
textTheme: AppTypography.textTheme(fontFamily: 'Poppins'),
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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