VText class
A chainable text builder for Flutter.
Constructors
- VText(String? data, {TextStyle? style, TextAlign? align, int? maxLines, TextOverflow? overflow, TextScaler? textScaler, StrutStyle? strutStyle, TextDirection? textDirection, Locale? locale, bool? softWrap, String? semanticsLabel, String? semanticsIdentifier, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior, Color? selectionColor})
-
Creates a VText with optional parameters.
const
Properties
- base → VText
-
Base font size.
no setter
- black → VText
-
Black font weight.
no setter
- blackColor → VText
-
Black color shortcut.
no setter
- bold → VText
-
Bold font weight.
no setter
- capitalize → VText
-
Capitalizes the first letter.
no setter
- center → VText
-
Center alignment.
no setter
- data → String?
-
The text data.
final
- extrabold → VText
-
Extra bold font weight.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- italic → VText
-
Italic font style.
no setter
- justify → VText
-
Justify alignment.
no setter
- left → VText
-
Left alignment.
no setter
- lg → VText
-
Large font size.
no setter
- lhLoose → VText
-
Loose line height.
no setter
- lhNormal → VText
-
Normal line height.
no setter
- lhRelaxed → VText
-
Relaxed line height.
no setter
- lhTight → VText
-
Tight line height.
no setter
- light → VText
-
Light font weight.
no setter
- lineThrough → VText
-
Line through decoration.
no setter
- locale → Locale?
-
The locale.
final
- lowercase → VText
-
Transforms text to lowercase.
no setter
- medium → VText
-
Medium font weight.
no setter
- normal → VText
-
Normal font weight.
no setter
- opacity100 → VText
-
100% opacity.
no setter
- opacity25 → VText
-
25% opacity.
no setter
- opacity50 → VText
-
50% opacity.
no setter
- opacity75 → VText
-
75% opacity.
no setter
- overflowClip → VText
-
Clips overflow.
no setter
- overflowEllipsis → VText
-
Ellipsis overflow.
no setter
- overflowFade → VText
-
Fade overflow.
no setter
- overline → VText
-
Overline decoration.
no setter
- right → VText
-
Right alignment.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectionColor → Color?
-
The selection color.
final
- semanticsIdentifier → String?
-
The semantics identifier.
final
- semanticsLabel → String?
-
The semantics label.
final
- semibold → VText
-
Semibold font weight.
no setter
- sm → VText
-
Small font size.
no setter
- softWrap → bool?
-
Whether the text should wrap.
final
- strutStyle → StrutStyle?
-
The strut style.
final
- textDirection → TextDirection?
-
The text direction.
final
- textHeightBehavior → TextHeightBehavior?
-
The text height behavior.
final
- textWidthBasis → TextWidthBasis?
-
The text width basis.
final
- thin → VText
-
Font weight shortcuts
Thin font weight.
no setter
- tight → VText
-
Tight letter spacing.
no setter
- underline → VText
-
Underline decoration.
no setter
- uppercase → VText
-
Transforms text to uppercase.
no setter
- white → VText
-
White color shortcut.
no setter
- wide → VText
-
Wide letter spacing.
no setter
- xl → VText
-
Extra large font size.
no setter
- xl2 → VText
-
2x extra large font size.
no setter
- xl3 → VText
-
3x extra large font size.
no setter
- xl4 → VText
-
4x extra large font size.
no setter
- xl5 → VText
-
5x extra large font size.
no setter
- xl6 → VText
-
6x extra large font size.
no setter
- xs → VText
-
Extra small font size.
no setter
Methods
-
align(
TextAlign a) → VText - Sets text alignment.
-
bg(
Color c) → VText - Sets background color.
-
blue(
int shade) → VText - Blue color shortcut.
-
color(
Color c) → VText - Sets the text color.
-
copyWithStyle(
TextStyle style) → VText -
Returns a copy with merged
style. -
gray(
int shade) → VText - Gray color shortcut.
-
green(
int shade) → VText - Green color shortcut.
-
lineHeight(
double h) → VText - Sets line height.
-
make(
) → Text - Builds the Flutter Text widget.
-
maxLines(
int n) → VText - Sets max lines.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
opacity(
double o) → VText - Sets opacity for text color.
-
red(
int shade) → VText - Red color shortcut.
-
scale(
double factor) → VText - Scales the text.
-
shadow(
{Color color = Colors.black26, double blur = 2, Offset offset = const Offset(1, 1)}) → VText - Adds a shadow to the text.
-
size(
double s) → VText - Sets the font size.
-
spacing(
double v) → VText - Sets letter spacing.
-
toString(
) → String -
A string representation of this object.
inherited
-
weight(
FontWeight w) → VText - Sets font weight.
-
wordSpacing(
double v) → VText - Sets word spacing.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited