⌂
›
Widgets
›
TextSpan
TextSpan
TextSpan control. Build it with the text_span helper.
Example
text_span(
"Ruflet documentation",
url: "https://ruflet.dev"
)
Properties
semantics_label— Sets the semantics label property.spans— Sets the spans property.spell_out— Sets the spell out property.style— Style overrides for the control.text— Text content of the control.url— URL the control loads or links to.
Common layout and animation properties
badge— Badge drawn on the corner of the control.col— Responsive column span (1-12) per breakpoint.data— Arbitrary value you can attach to the control and read back in handlers.disabled— Disables interaction when true.expand— Fills the available space along the parent's main axis when true.expand_loose— Like expand, but only grows up to the child's natural size.key— Stable identity used to preserve state across rebuilds.opacity— Opacity from 0.0 (transparent) to 1.0 (opaque).rtl— Renders right-to-left when true.tooltip— Text shown on hover/long-press.visible— Hides the control when false.
Events
on_click— Fired when the control is clicked/tapped.on_enter— Fired when the pointer enters the control.on_exit— Fired when the pointer leaves the control.
Reference
- Family:
shared - Widget type:
textspan - Helpers:
text_span,textspan