ResponsiveText class
Responsive text styles based on screen size
Constructors
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(
{FontWeight fontWeight = FontWeight.normal, Color? color, bool allowFontScaling = false}) → TextStyle - Body large text style
-
bodyMedium(
{FontWeight fontWeight = FontWeight.normal, Color? color, bool allowFontScaling = false}) → TextStyle - Body medium text style (default body text)
-
bodySmall(
{FontWeight fontWeight = FontWeight.normal, Color? color, bool allowFontScaling = false}) → TextStyle - Body small text style
- Button text style
-
caption(
{FontWeight fontWeight = FontWeight.normal, Color? color, bool allowFontScaling = false}) → TextStyle - Caption text style
-
display(
{FontWeight fontWeight = FontWeight.bold, Color? color, bool allowFontScaling = false}) → TextStyle - Display text style (very large)
-
h1(
{FontWeight fontWeight = FontWeight.bold, Color? color, bool allowFontScaling = false}) → TextStyle - Headline 1 text style
-
h2(
{FontWeight fontWeight = FontWeight.bold, Color? color, bool allowFontScaling = false}) → TextStyle - Headline 2 text style
-
h3(
{FontWeight fontWeight = FontWeight.w600, Color? color, bool allowFontScaling = false}) → TextStyle - Headline 3 text style
-
h4(
{FontWeight fontWeight = FontWeight.w600, Color? color, bool allowFontScaling = false}) → TextStyle - Headline 4 text style
-
h5(
{FontWeight fontWeight = FontWeight.w500, Color? color, bool allowFontScaling = false}) → TextStyle - Headline 5 text style
-
h6(
{FontWeight fontWeight = FontWeight.w500, Color? color, bool allowFontScaling = false}) → TextStyle - Headline 6 text style
-
label(
{FontWeight fontWeight = FontWeight.w500, Color? color, bool allowFontScaling = false}) → TextStyle - Label text style
-
overline(
{FontWeight fontWeight = FontWeight.w500, Color? color, bool allowFontScaling = false}) → TextStyle - Overline text style
-
style(
{required double fontSize, FontWeight? fontWeight, Color? color, double? letterSpacing, double? height, String? fontFamily, TextDecoration? decoration, FontStyle? fontStyle, bool allowFontScaling = false}) → TextStyle - Get responsive TextStyle