Responsive typography that scales text based on screen size.
final style = ResponsiveTypography.bodyLarge(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
-
bodyLarge(
BuildContext context, {Color? color}) → TextStyle - Body large — scaled.
-
bodyMedium(
BuildContext context, {Color? color}) → TextStyle - Body medium — scaled.
-
bodySmall(
BuildContext context, {Color? color}) → TextStyle - Body small — scaled.
-
displayLarge(
BuildContext context, {Color? color}) → TextStyle - Display large — scaled.
-
displayMedium(
BuildContext context, {Color? color}) → TextStyle - Display medium — scaled.
-
displaySmall(
BuildContext context, {Color? color}) → TextStyle - Display small — scaled.
-
headlineLarge(
BuildContext context, {Color? color}) → TextStyle - Headline large — scaled.
-
headlineMedium(
BuildContext context, {Color? color}) → TextStyle - Headline medium — scaled.
-
headlineSmall(
BuildContext context, {Color? color}) → TextStyle - Headline small — scaled.
-
labelLarge(
BuildContext context, {Color? color}) → TextStyle - Label large — scaled.
-
labelMedium(
BuildContext context, {Color? color}) → TextStyle - Label medium — scaled.
-
labelSmall(
BuildContext context, {Color? color}) → TextStyle - Label small — scaled.
-
scaledFontSize(
BuildContext context, {required double base, double min = 10, double max = 72, double designWidth = 390}) → double - Returns a font size scaled to the current screen width.
-
titleLarge(
BuildContext context, {Color? color}) → TextStyle - Title large — scaled.
-
titleMedium(
BuildContext context, {Color? color}) → TextStyle - Title medium — scaled.
-
titleSmall(
BuildContext context, {Color? color}) → TextStyle - Title small — scaled.