Skip to content
pubscout

clickable_list_wheel_view

0.2.0, released 4 years ago by cilestal.com

A wrapper for ListWheelScrollView that allows children to respond to tap events.

WASM-ready
$ flutter pub add clickable_list_wheel_view
Source repository

What it does

It wraps a Flutter ListWheelScrollView to enable onTap gesture events on individual list items. It provides callbacks for item taps, supports scrolling on click, and allows handling loop delegates.

AI-written summary of version 0.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a wheel-style scrolling list where individual items must be clickable.
  • You want to handle tap events on specific items inside a ListWheelScrollView.

Skip it when

  • You are not using a ListWheelScrollView.
  • You require complex touch interactions other than standard tap events.

Strengths

  • Simple and lightweight wrapper for existing ListWheelScrollView widgets.
  • Supports item tap callbacks and automatic scrolling on click.

Weaknesses

  • Limited in scope, only solves tap handling for ListWheelScrollView.
  • Not documented with extensive custom gestures beyond standard taps.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ClickableListWheelScrollView(
  scrollController: _scrollController,
  itemHeight: _itemHeight,
  itemCount: _itemCount,
  onItemTapCallback: (index) {
    print("onItemTapCallback index: $index");
  },
  child: ListWheelScrollView.useDelegate(
    controller: _scrollController,
    itemExtent: _itemHeight,
    physics: FixedExtentScrollPhysics(),
    childDelegate: ListWheelChildBuilderDelegate(
      builder: (context, index) => _child(index),
      childCount: _itemCount,
    ),
  ),
)

Alternatives

Packages that do the same job and could replace clickable_list_wheel_view.