TwText class

A builder-style widget that mimics Tailwind-like utilities for text

Inheritance
Mixed-in types

Constructors

TwText.new(String text, [TwStyle _style = const TwStyle()])
const

Properties

copyWith TwText Function(TwStyle newStyle)
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TwStyle
no setteroverride
text String
final

Methods

applyMargin(BuildContext context, Widget child) Widget
Applies margin to a widget using the resolved EdgeInsets
inherited
applyPadding(BuildContext context, Widget child) Widget
Applies padding to a widget using the resolved EdgeInsets
inherited
applyRounded(BuildContext context, Widget child) Widget
Applies rounded styling to a widget using the resolved BorderRadius
inherited
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
color(String key) TwText
Set text color using named token
inherited
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
m(int step) TwText
Set uniform margin using token scale
inherited
mb(int step) TwText
Set bottom margin using token scale
inherited
ml(int step) TwText
Set left margin using token scale
inherited
mr(int step) TwText
Set right margin using token scale
inherited
mt(int step) TwText
Set top margin using token scale
inherited
mx(int step) TwText
Set horizontal margin (left + right) using token scale
inherited
my(int step) TwText
Set vertical margin (top + bottom) using token scale
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
p(int step) TwText
Set uniform padding using token scale
inherited
pb(int step) TwText
Set bottom padding using token scale
inherited
pl(int step) TwText
Set left padding using token scale
inherited
pr(int step) TwText
Set right padding using token scale
inherited
pt(int step) TwText
Set top padding using token scale
inherited
px(int step) TwText
Set horizontal padding (left + right) using token scale
inherited
py(int step) TwText
Set vertical padding (top + bottom) using token scale
inherited
resolveMargin(BuildContext context) EdgeInsets
Resolves margin from TwStyle and TwTheme into EdgeInsets
inherited
resolvePadding(BuildContext context) EdgeInsets
Resolves padding from TwStyle and TwTheme into EdgeInsets
inherited
resolveRounded(BuildContext context) BorderRadius
Resolves rounded styling from TwStyle and TwConfig into BorderRadius
inherited
rounded([String size = '']) TwText
Set uniform rounded styling using Tailwind scale
inherited
roundedB([String size = '']) TwText
Set bottom rounded styling (bottom-left + bottom-right) using Tailwind scale
inherited
roundedBl([String size = '']) TwText
Set bottom-left rounded styling using Tailwind scale
inherited
roundedBr([String size = '']) TwText
Set bottom-right rounded styling using Tailwind scale
inherited
roundedL([String size = '']) TwText
Set left rounded styling (top-left + bottom-left) using Tailwind scale
inherited
roundedR([String size = '']) TwText
Set right rounded styling (top-right + bottom-right) using Tailwind scale
inherited
roundedT([String size = '']) TwText
Set top rounded styling (top-left + top-right) using Tailwind scale
inherited
roundedTl([String size = '']) TwText
Set top-left rounded styling using Tailwind scale
inherited
roundedTr([String size = '']) TwText
Set top-right rounded styling using Tailwind scale
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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