TextExtension extension

Text extension to directly style on Text

on

Properties

base Text
Sets textScaleFactor to base i.e. 1 or default
no setter
body1 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
body2 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
bold Text
Sets fontWeight to FontWeight.w600
no setter
caption1 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
caption2 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
clip Text
How to overflowing should be handled
no setter
darkBold Text
Sets fontWeight to FontWeight.w900
no setter
dashed Text
The decorations to paint near the text
no setter
dotted Text
The decorations to paint near the text
no setter
doubleLine Text
The decorations to paint near the text
no setter
ellipsis Text
How to overflowing should be handled
no setter
extraBold Text
Sets fontWeight to FontWeight.w800
no setter
extraLight Text
Sets fontWeight to FontWeight.w200
no setter
fade Text
How to overflowing should be handled
no setter
h1 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
h2 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
h3 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
h4 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
h5 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
h6 Text
The size of glyphs (in logical pixels) to use when painting the text.
no setter
heightLoose Text
Sets lineHeight to 1.5
no setter
heightRelaxed Text
Sets lineHeight to 1.25
no setter
heightSnug Text
Sets lineHeight to 0.875
no setter
heightTight Text
Sets lineHeight to 0.75
no setter
lg Text
Sets textScaleFactor to large i.e. 1.125
no setter
light Text
Sets fontWeight to FontWeight.w300
no setter
lineThrough Text
The decorations to paint near the text
no setter
medium Text
Sets fontWeight to FontWeight.w500
no setter
normal Text
Sets fontWeight to FontWeight.w400
no setter
overline Text
The decorations to paint near the text
no setter
rtl Text
The directionality of the text.
no setter
semiBold Text
Sets fontWeight to FontWeight.w700
no setter
sm Text
Sets textScaleFactor to small i.e. 0.875
no setter
solid Text
The decorations to paint near the text
no setter
textCenter Text
Whether and how to align text horizontally
no setter
textEnd Text
Whether and how to align text horizontally
no setter
textJustify Text
Whether and how to align text horizontally
no setter
textLeft Text
Whether and how to align text horizontally
no setter
textRight Text
Whether and how to align text horizontally
no setter
textStart Text
Whether and how to align text horizontally
no setter
thin Text
Sets fontWeight to FontWeight.w100
no setter
tighterLetter Text
Sets letterSpacing to -2.0
no setter
tighterWord Text
Sets WordSpacing to -2.0
no setter
tightestLetter Text
Sets letterSpacing to -3.0
no setter
tightestWord Text
Sets WordSpacing to -3.0
no setter
tightLetter Text
Sets letterSpacing to -1.0
no setter
tightWord Text
Sets WordSpacing to -1.0
no setter
underline Text
The decorations to paint near the text
no setter
visible Text
How to overflowing should be handled
no setter
wavy Text
The decorations to paint near the text
no setter
wideLetter Text
Sets letterSpacing to 1.0
no setter
widerLetter Text
Sets letterSpacing to 2.0
no setter
widerWord Text
Sets WordSpacing to 2.0
no setter
widestLetter Text
Sets letterSpacing to 3.0
no setter
widestWord Text
Sets WordSpacing to 3.0
no setter
wideWord Text
Sets WordSpacing to 1.0
no setter
xl Text
Sets textScaleFactor to extra large i.e. 1.25
no setter
xl2 Text
Sets textScaleFactor to twice extra large i.e. 1.5
no setter
xl3 Text
Sets textScaleFactor to thrice extra large i.e. 1.875
no setter
xl4 Text
Sets textScaleFactor to four times extra large i.e. 2.25
no setter
xl5 Text
Sets textScaleFactor to five times extra large i.e. 3
no setter
xl6 Text
Sets textScaleFactor to six times extra large i.e. 4
no setter
xs Text
Sets textScaleFactor to extra small i.e. 0.75
no setter

Methods

bgColor(Color backgroundColor) Text
The color to use as the background for the text.
color(Color color) Text
The color to use when painting the text.
fontFamily(String fontFamily) Text
Set fontFamily for the text
fontSize(double fontSize) Text
The size of glyphs (in logical pixels) to use when painting the text.
letterSpacing(double spacing) Text
The amount of space (in logical pixels) to add between each letter.
lineHeight(double height) Text
Sets custom lineHeight with height
maxLine(int maxLines) Text
An optional maximum number of lines for the text to span, wrapping if necessary.
setSoftWrap(bool softWrap) Text
Whether the text should break at soft line breaks.
textDecoraionColor(Color decorationColor) Text
Sets the color in which to paint the text decorations.
textScaleFactor(double textScaleFactor) Text
set textScaleFactor to text
textStyle({Key? key, TextStyle? style, StrutStyle? strutStyle, bool? softWrap, TextOverflow? overflow, TextDirection? textDirection, Locale? locale, String? semanticsLabel, double? textScaleFactor, TextWidthBasis? textWidthBasis, int? maxLines, TextAlign? textAlign}) Text
An immutable style describing how to format and paint text.
wordSpacing(double spacing) Text
The amount of space (in logical pixels) to add at each sequence of white-space