FlexiTextStyles class

A centralized, responsive typography system.

FlexiTextStyles provides adaptive text styles where font sizes scale fluidly across breakpoints using FlexiTypographyConfig provided by FlexiConfig. It also respects the system text scale factor for accessibility.

Usage:

Text(
  'Headline',
  style: FlexiTextStyles.h1(context),
)
Annotations

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

body(BuildContext context) → TextStyle
Returns a responsive Body text style.
h1(BuildContext context) → TextStyle
Returns a responsive H1 text style.
h2(BuildContext context) → TextStyle
Returns a responsive H2 text style.
h3(BuildContext context) → TextStyle
Returns a responsive H3 text style.
small(BuildContext context) → TextStyle
Returns a responsive Small text style.