⌂
›
Widgets
›
SimpleAttribution
SimpleAttribution
SimpleAttribution control. Build it with the simple_attribution helper.
Example
simple_attribution(
text: "Sample",
bgcolor: :surface_container_high,
on_click: ->(event) {}
)
Properties
alignment— Alignment of the content within the control.bgcolor— Background color.text— Text content of the control.
Common layout and animation properties
data— Arbitrary value you can attach to the control and read back in handlers.key— Stable identity used to preserve state across rebuilds.
Events
on_click— Fired when the control is clicked/tapped.
Reference
- Family:
materials - Widget type:
simpleattribution - Helpers:
simple_attribution,simpleattribution