FeedbackText class

Reusable FeedbackText inline message / helper component in the Alter Design System.

Figma Specifications (Node 339:11991):

  • Variants:
    • status=Danger (339:11990): Icon & Text textDanger (#E7000B)
    • status=Warning (339:11992): Icon & Text textWarning (#8A2C0D)
    • status=Caution (339:11996): Icon & Text textCaution (#D08700)
    • status=Success (339:12000): Icon & Text textSuccess (#00A63E)
  • Gap: 4px between icon and label
  • Icon: 16x16px (default Icons.error)
  • Typography: Body/caption -> AlterTypography.caption (Geist 12px, Regular 400, line-height 16px)
  • Layout: Row (hug content)
Inheritance

Constructors

FeedbackText({Key? key, String text = 'Feedback Text', FeedbackTextStatus status = FeedbackTextStatus.danger, bool hasIcon = true, IconData icon = Icons.error})
Creates a FeedbackText instance.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hasIcon → bool
Whether the leading status icon should be displayed.
final
icon → IconData
Icon data for the status icon.
final
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
status → FeedbackTextStatus
Semantic status styling type.
final
text → String
Message string displayed.
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, 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

Constants

version → const String
Component version for reference. v1.0.0: Initial release matching Figma Node 339:11991.