TextStyleExtensions extension

Extensions for TextStyle to simplify and enhance text styling.

on

Properties

bold → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies bold weight.
no setter
italic → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies italic style.
no setter
light → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies light weight.
no setter
lineThrough → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies line-through decoration.
no setter
medium → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies medium weight.
no setter
noDecoration → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Removes all text decorations.
no setter
overline → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies overline decoration.
no setter
semiBold → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies semi-bold weight.
no setter
underline → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies underline decoration.
no setter

Methods

glow({Color color = Colors.blueAccent, double blurRadius = 5.0, int spread = 3}) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Adds multiple text shadows for a glow effect.
lineHeight(double value) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Sets the line height (height factor).
mergeWith(TextStyle? other) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Combines two styles.
outlined({Color strokeColor = Colors.black, double strokeWidth = 1.0}) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies an outlined text style.
responsiveSize(BuildContext context, double factor) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Makes the font responsive based on screen width.
scaleSize(double factor) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Scales the font size by a factor.
size(double value) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Sets the font size.
weight(FontWeight value) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Sets the font weight.
withShadow({Color color = Colors.black38, double blurRadius = 2.0, Offset offset = const Offset(1, 1)}) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Sets text shadows.
withShadows(List<Shadow> shadows) → TextStyle

Available on TextStyle, provided by the TextStyleExtensions extension

Applies multiple shadows.