Tag class

Inheritance

Constructors

Tag({Key? key, required Widget child, required String text, TextStyle? textStyle, BoxDecoration? labelDecoration, Color? color, double tagHeight = 40, double tagWidth = 120, double cornerHeight = 10, double cornerWidth = 10, double spacing = 2, double rightPadding = 0, bool isVisible = true})

Properties

child Widget
Widget that will receive the tag
final
color Color?
Color of the tag
final
cornerHeight double
Height of the corner
final
cornerWidth double
Width of the corner
final
hashCode int
The hash code for this object.
no setterinherited
isVisible bool
Wheter the tag is visible or not
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelDecoration BoxDecoration?
Decoration of the text label
final
rightPadding double
Padding
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spacing double
Spacing of the tag text
final
tagHeight double
Height of the tag
final
tagWidth double
Width of the tag
final
text String
Text to go on the tag if any
final
textStyle TextStyle?
Style of the text
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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}) 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