Reference

ReorderableListView

ReorderableListView

ReorderableListView control. Build it with the reorderable_list_view helper.

Example

reorderable_list_view(
  expand: true,
  width: 240,
  height: 120,
  on_animation_end: ->(event) {}
)

Properties

  • adaptive — Adapts to the platform (Material/Cupertino) when true.
  • anchor
  • auto_scroll
  • auto_scroller_velocity_scalar
  • build_controls_on_demand
  • cache_extent
  • clip_behavior — How content overflowing the bounds is clipped.
  • controls — The list of child controls.
  • divider_thickness
  • first_item_prototype
  • footer
  • header
  • horizontal
  • item_extent
  • mouse_cursor — Cursor shown when hovering the control.
  • padding — Inner spacing between the border and the content.
  • prototype_item
  • reverse
  • scroll
  • scroll_interval
  • semantic_child_count
  • show_default_drag_handles
  • spacing

Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).

Events

  • on_animation_end — Fired when an animation completes.
  • on_reorder — Fired on reorder.
  • on_reorder_end — Fired on reorder end.
  • on_reorder_start — Fired on reorder start.
  • on_scroll — Fired when the scroll position changes.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: materials
  • Widget type: reorderablelistview
  • Helper: reorderable_list_view