TextModifiers extension
Changes this widget's TextStyle.
- on
Methods
-
backgroundColor(
Color color) → Widget - Changes the TextStyle.backgroundColor for this widget.
-
font(
{double? size, String? family, FontWeight? weight, FontStyle? style}) → Widget - Changes this widget's TextStyle.
-
foregroundColor(
Color color) → Widget - Changes the TextStyle.color for this widget
-
lineLimit(
int limit) → Widget - Changes the DefaultTextStyle.maxLines for this widget.
-
lineSpacing(
double height) → Widget - Changes the TextStyle.height for this widget.
-
multilineTextAlignment(
TextAlign textAlign) → Widget - Changes the DefaultTextStyle.textAlign for this widget.
-
shadow(
Color color, double radius, {required double blur, double x = 0.0, double y = 0.0}) → Widget - Changes the TextStyle.shadows for this widget, using a singular shadow.
-
truncationMode(
TextOverflow overflow) → Widget - Changes the DefaultTextStyle.overflow for this widget.