TxtStyle class

Constructors

TxtStyle({AngleFormat angleFormat = AngleFormat.cycles})

Properties

alignment → AlignmentModel
Alignment relative to its surroundings
finalinherited
alignmentContent → AlignmentModel
Alignment of the child
finalinherited
angleFormat AngleFormat
finalinherited
background → BackgroundModel
Widget background styling
finalinherited
exportStyle → StyleModel
no setterinherited
exportTextStyle → TextModel
no setter
hashCode int
The hash code for this object.
no setterinherited
overflow → OverflowModel
Change child overflow behaviour.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlign → TextAlignModel
final

Methods

add(TxtStyle? txtStyle, {bool override = false}) → void
Combines style from another style instance
animate([int duration = 500, Curve curve = Curves.linear]) → void
Duration is given in milliseconds.
inherited
bold([bool enable = true]) → void
border({double? all, double? left, double? right, double? top, double? bottom, Color color = const Color(0xFF000000), BorderStyle style = BorderStyle.solid}) → void
Border for the widget
inherited
borderRadius({double? all, double? topLeft, double? topRight, double? bottomLeft, double? bottomRight}) → void
It is valid to use all together with single sided properties. Single sided properties will trump over the all property.
inherited
boxShadow({Color color = const Color(0x33000000), double blur = 0.0, Offset offset = Offset.zero, double spread = 0.0}) → void
If defined while the elevation method is defined, the last one defined will be the one applied.
inherited
circle([dynamic enable = true]) → void
inherited
clone() TxtStyle
Clone object
editable({bool enable = true, TextInputType? keyboardType, String? placeholder, bool obscureText = false, bool autoFocus = false, int? maxLines, void onChange(String)?, void onFocusChange(bool? focus)?, void onSelectionChanged(TextSelection, SelectionChangedCause?)?, void onEditingComplete()?, FocusNode? focusNode}) → void
Make the widget editable just like a TextField.
elevation(double elevation, {double angle = 0.0, Color color = const Color(0x33000000), double opacity = 1.0}) → void
Elevates the widget with a boxShadow. angle format depends on what is specified in the style widget`s constructor.
inherited
fontFamily(String font, {List<String>? fontFamilyFallback}) → void
fontSize(double fontSize) → void
fontWeight(FontWeight weight) → void
height(double height) → void
inherited
italic([bool enable = true]) → void
letterSpacing(double space) → void
linearGradient({AlignmentGeometry begin = Alignment.centerLeft, AlignmentGeometry end = Alignment.centerRight, required List<Color> colors, TileMode tileMode = TileMode.clamp, List<double>? stops}) → void
Creates a linear gradient.
inherited
margin({double? all, double? horizontal, double? vertical, double? top, double? bottom, double? left, double? right}) → void
Empty space to surround the decoration and child.
inherited
maxHeight(double maxHeight) → void
inherited
maxLines(int maxLines) → void
maxWidth(double maxWidth) → void
inherited
minHeight(double minHeight) → void
inherited
minWidth(double minWidth) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
offset(double dx, double dy) → void
inherited
opacity(double opacity) → void
inherited
padding({double? all, double? horizontal, double? vertical, double? top, double? bottom, double? left, double? right}) → void
Empty space to inscribe inside the decoration. The child, if any, is placed inside this padding.
inherited
radialGradient({AlignmentGeometry center = Alignment.center, required double radius, required List<Color> colors, TileMode tileMode = TileMode.clamp, List<double>? stops}) → void
Creates a radial gradient.
inherited
ripple(bool enable, {Color? splashColor, Color? highlightColor}) → void
Material ripple effect
inherited
rotate(double angle) → void
StyleClass(angleFormat: AngleFormat.cycles) ..rotate(0.75); StyleClass(angleFormat: AngleFormat.radians) ..rotate(0.75 * pi * 2)
inherited
scale(double ratio) → void
inherited
sweepGradient({AlignmentGeometry center = Alignment.center, double startAngle = 0.0, required double endAngle, required List<Color> colors, TileMode tileMode = TileMode.clamp, List<double>? stops}) → void
Creates a sweep gradient.
inherited
textColor(Color textColor) → void
textDecoration(TextDecoration decoration) → void
textDirection(TextDirection textDirection) → void
textElevation(double elevation, {double angle = 0.0, Color color = const Color(0x33000000), double opacity = 1.0}) → void
Elevates the text with a shadow. angle format depends on what is specified in the style widget`s constructor.
textOverflow(TextOverflow textOverflow) → void
textShadow({Color color = const Color(0x33000000), double blur = 0.0, Offset offset = Offset.zero}) → void
toString() String
A string representation of this object.
inherited
width(double width) → void
inherited
wordSpacing(double space) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited