TextExtension extension

on

Methods

alphabetic() Text
The common baseline that should be aligned between this text span and its parent text span, or, for the root text spans, with the line box. [...]
amber() Text
The color to use when painting the text. [...]
amberAccent() Text
The color to use when painting the text. [...]
bgAmber() Text
The color to use as the background for the text. [...]
bgAmberAccent() Text
The color to use as the background for the text. [...]
bgBlack() Text
The color to use as the background for the text. [...]
bgBlue() Text
The color to use as the background for the text. [...]
bgBlueAccent() Text
The color to use as the background for the text. [...]
bgBlueGrey() Text
The color to use as the background for the text. [...]
bgBrown() Text
The color to use as the background for the text. [...]
bgCyan() Text
The color to use as the background for the text. [...]
bgCyanAccent() Text
The color to use as the background for the text. [...]
bgDeepOrange() Text
The color to use as the background for the text. [...]
bgDeepOrangeAccent() Text
The color to use as the background for the text. [...]
bgDeepPurple() Text
The color to use as the background for the text. [...]
bgDeepPurpleAccent() Text
The color to use as the background for the text. [...]
bgGreen() Text
The color to use as the background for the text. [...]
bgGreenAccent() Text
The color to use as the background for the text. [...]
bgGrey() Text
The color to use as the background for the text. [...]
bgIndigo() Text
The color to use as the background for the text. [...]
bgIndigoAccent() Text
The color to use as the background for the text. [...]
bgLightBlue() Text
The color to use as the background for the text. [...]
bgLightBlueAccent() Text
The color to use as the background for the text. [...]
bgLightGreen() Text
The color to use as the background for the text. [...]
bgLightGreenAccent() Text
The color to use as the background for the text. [...]
bgLime() Text
The color to use as the background for the text. [...]
bgLimeAccent() Text
The color to use as the background for the text. [...]
bgOrange() Text
The color to use as the background for the text. [...]
bgOrangeAccent() Text
The color to use as the background for the text. [...]
bgPink() Text
The color to use as the background for the text. [...]
bgPinkAccent() Text
The color to use as the background for the text. [...]
bgPurple() Text
The color to use as the background for the text. [...]
bgPurpleAccent() Text
The color to use as the background for the text. [...]
bgRed() Text
The color to use as the background for the text. [...]
bgRedAccent() Text
The color to use as the background for the text. [...]
bgTeal() Text
The color to use as the background for the text. [...]
bgTealAccent() Text
The color to use as the background for the text. [...]
bgWhite() Text
The color to use as the background for the text. [...]
bgYellow() Text
The color to use as the background for the text. [...]
bgYellowAccent() Text
The color to use as the background for the text. [...]
black() Text
The color to use when painting the text. [...]
blue() Text
The color to use when painting the text. [...]
blueAccent() Text
The color to use when painting the text. [...]
blueGrey() Text
The color to use when painting the text. [...]
bold() Text
The typeface thickness to use when painting the text [...]
boldBlack() Text
The typeface thickness to use when painting the text [...]
brown() Text
The color to use when painting the text. [...]
center() Text
How the text should be aligned horizontally. [...]
clip() Text
Clip the overflowing text to fix its container.
copyWith({Key key, StrutStyle strutStyle, TextAlign textAlign, TextDirection textDirection: TextDirection.ltr, Locale locale, bool softWrap, TextOverflow overflow, double textScaleFactor, int maxLines, String semanticsLabel, TextWidthBasis textWidthBasis, TextStyle style}) Text
Creates a copy of this Text but the given fields will be replaced with the new values.
cyan() Text
The color to use when painting the text. [...]
cyanAccent() Text
The color to use when painting the text. [...]
deepOrange() Text
The color to use when painting the text. [...]
deepOrangeAccent() Text
The color to use when painting the text. [...]
deepPurple() Text
The color to use when painting the text. [...]
deepPurpleAccent() Text
The color to use when painting the text. [...]
ellipsis() Text
Use an ellipsis to indicate that the text has overflowed.
end() Text
How the text should be aligned horizontally. [...]
expanded() Expanded
Wraps this Text with an Expanded widget
extraBold() Text
The typeface thickness to use when painting the text [...]
extraLight() Text
The typeface thickness to use when painting the text [...]
fade() Text
Fade the overflowing text to transparent.
green() Text
The color to use when painting the text. [...]
greenAccent() Text
The color to use when painting the text. [...]
grey() Text
The color to use when painting the text. [...]
ideographic() Text
The common baseline that should be aligned between this text span and its parent text span, or, for the root text spans, with the line box. [...]
indigo() Text
The color to use when painting the text. [...]
indigoAccent() Text
The color to use when painting the text. [...]
italic() Text
The typeface variant to use when drawing the letters [...]
justify() Text
How the text should be aligned horizontally. [...]
left() Text
How the text should be aligned horizontally. [...]
light() Text
The typeface thickness to use when painting the text [...]
lightBlue() Text
The color to use when painting the text. [...]
lightBlueAccent() Text
The color to use when painting the text. [...]
lightGreen() Text
The color to use when painting the text. [...]
lightGreenAccent() Text
The color to use when painting the text. [...]
lime() Text
The color to use when painting the text. [...]
limeAccent() Text
The color to use when painting the text. [...]
lineThrough() Text
The decorations to paint near the text (e.g., an underline). [...]
longestLine() Text
The width will be exactly enough to contain the longest line and no longer. A common use case for this is chat bubbles.
ltr() Text
The directionality of the text. [...]
medium() Text
The typeface thickness to use when painting the text [...]
normal() Text
The typeface variant to use when drawing the letters [...]
opacity(double opacity) Opacity
Wraps this Text with an Opacity widget
orange() Text
The color to use when painting the text. [...]
orangeAccent() Text
The color to use when painting the text. [...]
overline() Text
The decorations to paint near the text (e.g., an underline). [...]
padding(EdgeInsetsGeometry padding) Padding
Wraps this Text with a Padding widget
parent() Text
Multiline text will take up the full width given by the parent. For single line text, only the minimum amount of width needed to contain the text will be used. A common use case for this is a standard series of paragraphs.
pink() Text
The color to use when painting the text. [...]
pinkAccent() Text
The color to use when painting the text. [...]
purple() Text
The color to use when painting the text. [...]
purpleAccent() Text
The color to use when painting the text. [...]
red() Text
The color to use when painting the text. [...]
redAccent() Text
The color to use when painting the text. [...]
How the text should be aligned horizontally. [...]
rtl() Text
The directionality of the text. [...]
semiBold() Text
The typeface thickness to use when painting the text [...]
setBackground(Paint background) Text
The paint drawn as a background for the text. [...]
setBackgroundColor(Color color) Text
The color to use as the background for the text. [...]
setColor(Color color) Text
The color to use when painting the text. [...]
setDebugLabel(String debugLabel) Text
A human-readable description of this text style. [...]
setDecoration(TextDecoration decoration) Text
The decorations to paint near the text (e.g., an underline). [...]
setDecorationColor(Color decorationColor) Text
The color in which to paint the text decorations.
setDecorationStyle(TextDecorationStyle decorationStyle) Text
The style in which to paint the text decorations (e.g., dashed).
setDecorationThickness(double decorationThickness) Text
The thickness of the decoration stroke as a multiplier of the thickness defined by the font. [...]
setFontFamily(String fontFamily) Text
The name of the font to use when painting the text (e.g., Roboto). If the font is defined in a package, this will be prefixed with 'packages/package_name/' (e.g. 'packages/cool_fonts/Roboto'). The prefixing is done by the constructor when the package argument is provided. [...]
setFontSize(double fontSize) Text
The size of glyphs (in logical pixels) to use when painting the text. [...]
setFontStyle(FontStyle fontStyle) Text
The typeface variant to use when drawing the letters
setFontWeight(FontWeight fontWeight) Text
The typeface thickness to use when painting the text
setForeground(Paint foreground) Text
The paint drawn as a foreground for the text. [...]
setHeight(double height) Text
The height of this text span, as a multiple of the font size. [...]
setKey(Key key) Text
Initializes key for subclasses.
setLetterSpacing(double letterSpacing) Text
The amount of space (in logical pixels) to add between each letter. A negative value can be used to bring the letters closer.
setLocale(Locale locale) Text
The locale used to select region-specific glyphs. [...]
setMaxLines(int maxLines) Text
An optional maximum number of lines for the text to span, wrapping if necessary. If the text exceeds the given number of lines, it will be truncated according to overflow. [...]
setOverflow(TextOverflow overflow) Text
How visual overflow should be handled.
setSemanticsLabel(String semanticsLabel) Text
An alternative semantics label for this text. [...]
setSoftWrap(bool softWrap) Text
Whether the text should break at soft line breaks. [...]
setStrutStyle(StrutStyle strutStyle) Text
The strut style to use. Strut style defines the strut, which sets minimum vertical layout metrics. [...]
setStyle(TextStyle style) Text
If non-null, the style to use for this text. [...]
setTextAlign(TextAlign textAlign) Text
How the text should be aligned horizontally.
setTextBaseline(TextBaseline textBaseline) Text
The common baseline that should be aligned between this text span and its parent text span, or, for the root text spans, with the line box.
setTextDirection(TextDirection textDirection) Text
The directionality of the text. [...]
setTextScaleFactor(double textScaleFactor) Text
The number of font pixels for each logical pixel. [...]
setTextWidthBasis(TextWidthBasis textWidthBasis) Text
The different ways of measuring the width of one or more lines of text. [...]
setWordSpacing(double wordSpacing) Text
The amount of space (in logical pixels) to add at each sequence of white-space (i.e. between each word). A negative value can be used to bring the words closer.
start() Text
How the text should be aligned horizontally. [...]
teal() Text
The color to use when painting the text. [...]
tealAccent() Text
The color to use when painting the text. [...]
thin() Text
The typeface thickness to use when painting the text [...]
underline() Text
The decorations to paint near the text (e.g., an underline). [...]
visible() Text
Render overflowing text outside of its container.
white() Text
The color to use when painting the text. [...]
yellow() Text
The color to use when painting the text. [...]
yellowAccent() Text
The color to use when painting the text. [...]