AppTextStyles class abstract final

Hook-calling facade for text styles.

Returns the TextStyle produced by whichever palette plugin has registered the styles:text hook. ThemeDefaultPlugin provides the default implementation; swap it by registering a higher-priority handler.

Usage:

Text('Title', style: AppTextStyles.appBarTitle(context))

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

Static Methods

appBarTitle(BuildContext context) TextStyle
AppBar title — typically Inter w700 13px ls:2.0, theme onSurface colour.
bodyLarge(BuildContext context) TextStyle
Large body text — typically Inter w500 15px.
bodyMedium(BuildContext context) TextStyle
Medium body text — typically Inter w500 14px.
bodySecondary(BuildContext context) TextStyle
Secondary body text — typically Inter 14px at 60% opacity.
bodyXLarge(BuildContext context) TextStyle
Extra-large body text — typically Inter w600 16px.
caption(BuildContext context) TextStyle
Small caption / badge label — typically Inter w600 11px ls:1.2 at 60% opacity.
formLabel(BuildContext context) TextStyle
Form field label — typically Inter w600 12px ls:1.0 at 87% opacity.
hint(BuildContext context) TextStyle
Hint / placeholder text — typically Inter 14px at 50% opacity.
modalTitle(BuildContext context) TextStyle
Modal / bottom-sheet title — typically Inter w700 20px.
screenTitle(BuildContext context) TextStyle
Large screen heading — typically Inter w700 28px ls:1.0.
sectionHeader(BuildContext context) TextStyle
Section heading inside a screen — typically Inter w700 18px.
sectionLabel(BuildContext context) TextStyle
Small section label — typically Inter w700 11px ls:1.5 at 80% opacity.