Widgets

DataCell

DataCell

DataCell control. Build it with the data_cell helper.

Example

data_cell(
  content: text("DataCell"),
  expand: true,
  on_tap: ->(event) {}
)

Properties

  • content — The single child control rendered inside this control.
  • placeholder — Sets the placeholder property.
  • show_edit_icon — Show edit icon.

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_double_tap — Fired on a double tap.
  • on_long_press — Fired on a long press.
  • on_tap — Fired on a tap.
  • on_tap_cancel — Fired when a tap is cancelled.
  • on_tap_down — Fired when a pointer presses down.

Reference

  • Family: materials
  • Widget type: datacell
  • Helpers: data_cell, datacell