TextStyleEnhancements extension
Extension on TextStyle for additional modifications and utilities.
- on
Properties
- bold → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - extraBold → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
Font weight shortcutsno setter - extraLight → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - italic → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
Font style shortcutsno setter - light → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - lineThrough → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - medium → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - noDecoration → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - normal → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - normalStyle → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - overline → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - regular → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - relaxed → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - semiBold → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - thin → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
no setter - tight → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
Spacing shortcutsno setter - underline → TextStyle
-
Available on TextStyle, provided by the TextStyleEnhancements extension
Decoration shortcutsno setter
Methods
-
withBackground(
Color color) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies a background color to the text style -
withColor(
Color color) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies a color to the text style -
withDecoration(
TextDecoration decoration) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies text decoration -
withFamily(
String family) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies a font family -
withHeight(
double height) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies line height -
withShadow(
{Color color = const Color(0x33000000), double blurRadius = 2.0, Offset offset = Offset.zero}) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies a single shadow -
withShadows(
List< Shadow> shadows) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies multiple shadows -
withSpacing(
double spacing) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies letter spacing -
withStyle(
TextStyle style) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies font style -
withWeight(
FontWeight weight) → TextStyle -
Available on TextStyle, provided by the TextStyleEnhancements extension
Applies a font weight