DievasTextButton class

A text button with a transparent, borderless default surface.

Uses the size variant’s minimum height. Used for inline actions, links, and secondary affordance where a full-height button would be too heavy.

DievasTextButton(
  label: 'View details',
  onPressed: () { },
)
Inheritance

Constructors

DievasTextButton({Key? key, DievasTextButtonStyle style = .primary, DievasButtonSize size = .md, DievasButtonState state = .idle, String? label, Widget? child, OutlinedBorder? shape, Color? foregroundColor, Widget? leadingIcon, Widget? trailingIcon, VoidCallback? onPressed, VoidCallback? onLongPress, Color? backgroundColor, Color? borderColor, BorderRadiusGeometry? borderRadius, bool? showBorder, bool isFullWidth = false, bool showPulseEffect = false, bool animateLoading = true, bool showPulseEffectJiggle = false, DievasButtonIconStyleBehavior iconStyleBehavior = .inheritFromState, String? semanticLabel, Duration loaderRotationDuration = DievasAnimationSemantic.loader})
const

Properties

animateLoading → bool
Fade and scale between content and loader. Reduced motion switches instantly.
final
backgroundColor → Color?
Optional surface fill; transparent by default.
final
borderColor → Color?
Border colour override. Explicit false showBorder takes precedence.
final
borderRadius → BorderRadiusGeometry?
Radius override, used when shape is null.
final
child → Widget?
final
foregroundColor → Color?
final
hashCode → int
The hash code for this object.
no setterinherited
iconStyleBehavior → DievasButtonIconStyleBehavior
Whether icon slots use the resolved foreground or their own styling.
final
isFullWidth → bool
Fill bounded available width; retain natural width when unbounded.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String?
final
leadingIcon → Widget?
final
loaderRotationDuration → Duration
final
onLongPress → VoidCallback?
Long-press action, independent of the tap callback.
final
onPressed → VoidCallback?
Tap action. Both callbacks being null, loading, or disabled blocks interaction.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Accessible name for an icon-only button.
final
shape → OutlinedBorder?
final
showBorder → bool?
Optional border visibility; text buttons default to borderless.
final
showPulseEffect → bool
Enable a press-scale response, respecting reduced motion.
final
showPulseEffectJiggle → bool
Add a rotational jiggle when showPulseEffect is enabled.
final
size → DievasButtonSize
final
state → DievasButtonState
final
style → DievasTextButtonStyle
final
trailingIcon → Widget?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<DievasTextButton>
Creates the mutable state for this widget at a given location in the tree.
override
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