item_selector 0.1.0

  • Readme
  • Changelog
  • Installing
  • 79

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 #


Usage #

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

  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.

[0.1.0] - 2020-05-02 #

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  item_selector: ^0.1.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:item_selector/item_selector.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 11, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart


  • item_selector that is a package requiring null.

Health suggestions

Fix lib/src/item_selection.dart. (-0.50 points)

Analysis of lib/src/item_selection.dart reported 1 hint:

line 68 col 29: The member 'ItemSelectionNotifier' can only be used within 'package:item_selector/src/item_selection_notifier.dart' or a test.

Maintenance suggestions

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and item_selector.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
flutter 0.0.0
interval_tree ^0.2.2 0.2.2
Transitive dependencies
collection 1.14.12 1.14.13
matcher 0.12.8
meta 1.1.8 1.2.2
path 1.7.0
quiver 2.1.3
sky_engine 0.0.99
stack_trace 1.9.5
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies