AppTypography class
A semantic typography contract for the application.
AppTypography represents fully resolved text styles that are consumed
directly by UI widgets. All styles exposed here are expected to be
theme-aware and stable for the lifetime of the active ThemeData.
This class intentionally exposes only semantic variants. Mechanical differences such as font size, weight, or color composition must be resolved during theme construction, not in widgets.
- Inheritance
-
- Object
- ThemeExtension<
AppTypography> - AppTypography
- Annotations
Constructors
- AppTypography({required TextStyle displayLarge, required TextStyle displayMedium, required TextStyle displaySmall, required TextStyle displayLargePrimary, required TextStyle displayMediumPrimary, required TextStyle displaySmallPrimary, required TextStyle headlineLarge, required TextStyle headlineMedium, required TextStyle headlineSmall, required TextStyle headlineLargePrimary, required TextStyle headlineMediumPrimary, required TextStyle headlineSmallPrimary, required TextStyle titleLarge, required TextStyle titleMedium, required TextStyle titleSmall, required TextStyle titleLargePrimary, required TextStyle titleMediumPrimary, required TextStyle titleSmallPrimary, required TextStyle bodyLarge, required TextStyle bodyMedium, required TextStyle bodySmall, required TextStyle bodyLargeSecondary, required TextStyle bodyMediumSecondary, required TextStyle bodySmallSecondary, required TextStyle bodyLargeTertiary, required TextStyle bodyMediumTertiary, required TextStyle bodySmallTertiary, required TextStyle bodyLargeEmphasis, required TextStyle bodyMediumEmphasis, required TextStyle bodySmallEmphasis, required TextStyle labelLarge, required TextStyle labelMedium, required TextStyle labelSmall, required TextStyle labelLargeSecondary, required TextStyle labelMediumSecondary, required TextStyle labelSmallSecondary})
-
const
- AppTypography.defaults({Color textPrimary = Colors.black, Color textSecondary = const Color(0xFF49454F), Color textTertiary = const Color(0xFF79747E), Color primary = const Color(0xFF6750A4)})
-
Creates a default typography configuration using explicit color inputs.
factory
Properties
- bodyLarge → TextStyle
-
Primary body text styles for main content.
final
- bodyLargeEmphasis → TextStyle
-
Emphasized body text styles for inline emphasis and highlighted values.
final
- bodyLargeSecondary → TextStyle
-
Secondary body text styles for supporting or descriptive content.
final
- bodyLargeTertiary → TextStyle
-
Tertiary body text styles for low-emphasis or helper content.
final
- bodyMedium → TextStyle
-
final
- bodyMediumEmphasis → TextStyle
-
final
- bodyMediumSecondary → TextStyle
-
final
- bodyMediumTertiary → TextStyle
-
final
- bodySmall → TextStyle
-
final
- bodySmallEmphasis → TextStyle
-
final
- bodySmallSecondary → TextStyle
-
final
- bodySmallTertiary → TextStyle
-
final
- displayLarge → TextStyle
-
Primary display styles used for hero and marketing content.
final
- displayLargePrimary → TextStyle
-
Display styles using the app primary color for accent emphasis.
final
- displayMedium → TextStyle
-
final
- displayMediumPrimary → TextStyle
-
final
- displaySmall → TextStyle
-
final
- displaySmallPrimary → TextStyle
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- headlineLarge → TextStyle
-
Primary headline styles used for screen and section headers.
final
- headlineLargePrimary → TextStyle
-
Headline styles using the app primary color for accent emphasis.
final
- headlineMedium → TextStyle
-
final
- headlineMediumPrimary → TextStyle
-
final
- headlineSmall → TextStyle
-
final
- headlineSmallPrimary → TextStyle
-
final
- labelLarge → TextStyle
-
Primary label styles used for buttons, chips, and controls.
final
- labelLargeSecondary → TextStyle
-
Secondary label styles used for de-emphasized or disabled labels.
final
- labelMedium → TextStyle
-
final
- labelMediumSecondary → TextStyle
-
final
- labelSmall → TextStyle
-
final
- labelSmallSecondary → TextStyle
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleLarge → TextStyle
-
Primary title styles used for cards, list items, and subsections.
final
- titleLargePrimary → TextStyle
-
Title styles using the app primary color for accent emphasis.
final
- titleMedium → TextStyle
-
final
- titleMediumPrimary → TextStyle
-
final
- titleSmall → TextStyle
-
final
- titleSmallPrimary → TextStyle
-
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{TextStyle? displayLarge, TextStyle? displayMedium, TextStyle? displaySmall, TextStyle? displayLargePrimary, TextStyle? displayMediumPrimary, TextStyle? displaySmallPrimary, TextStyle? headlineLarge, TextStyle? headlineMedium, TextStyle? headlineSmall, TextStyle? headlineLargePrimary, TextStyle? headlineMediumPrimary, TextStyle? headlineSmallPrimary, TextStyle? titleLarge, TextStyle? titleMedium, TextStyle? titleSmall, TextStyle? titleLargePrimary, TextStyle? titleMediumPrimary, TextStyle? titleSmallPrimary, TextStyle? bodyLarge, TextStyle? bodyMedium, TextStyle? bodySmall, TextStyle? bodyLargeSecondary, TextStyle? bodyMediumSecondary, TextStyle? bodySmallSecondary, TextStyle? bodyLargeTertiary, TextStyle? bodyMediumTertiary, TextStyle? bodySmallTertiary, TextStyle? bodyLargeEmphasis, TextStyle? bodyMediumEmphasis, TextStyle? bodySmallEmphasis, TextStyle? labelLarge, TextStyle? labelMedium, TextStyle? labelSmall, TextStyle? labelLargeSecondary, TextStyle? labelMediumSecondary, TextStyle? labelSmallSecondary}) → AppTypography -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< AppTypography> ? other, double t) → AppTypography -
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.
override