AdaptiveTypography class
A class representing adaptive typography that provides styles for various text elements based on the current platform (iOS or Android).
Constructors
- AdaptiveTypography({TextStyle? body, TextStyle? label, TextStyle? caption, TextStyle? headline, TextStyle? subheading})
-
Creates an instance of AdaptiveTypography.
const
Properties
- body → TextStyle?
-
The text style for body text.
final
- caption → TextStyle?
-
The text style for caption text.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- headline → TextStyle?
-
The text style for headline text.
final
- label → TextStyle?
-
The text style for label text.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subheading → TextStyle?
-
The text style for subheading text.
final
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.
override
Static Methods
-
of(
BuildContext context) → AdaptiveTypography - Retrieves an instance of AdaptiveTypography based on the current platform.