item_selector 0.1.1

Flutter Android iOS web

A generic item selector that works with ListView, GridView, Row, Column, or basically any parent widget that can have indexed child widgets.

Item Selector for Flutter #

pub license: MIT build codecov

A generic Flutter item selector that works with ListView, GridView, Row, Column, or basically any parent widget that can have indexed child widgets. It supports single-selection by tap, and multi-selection by long-press and drag with auto-scrolling.

Preview #

ListViewGridView
ListViewGridView
ColumnCustom
ColumnCustom

Usage #

To use this package, add item_selector as a dependency in your pubspec.yaml file.

ItemSelectionController(
  child: ListView(
    children: List.generate(10, (int index) {
      return ItemSelectionBuilder(
        index: index,
        builder: (BuildContext context, int index, bool selected) {
          return Text('$index: $selected');
        },
      );
    }),
  ),
)

Thanks #

Item Selector is based on Multi Select GridView in Flutter - by Simon Lightfoot.

8
likes
110
pub points
73%
popularity

A generic item selector that works with ListView, GridView, Row, Column, or basically any parent widget that can have indexed child widgets.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

jpnurmi@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, interval_tree

More

Packages that depend on item_selector