{"id":16849288,"url":"https://github.com/jpnurmi/item_selector","last_synced_at":"2025-04-11T06:40:59.980Z","repository":{"id":56833168,"uuid":"260696399","full_name":"jpnurmi/item_selector","owner":"jpnurmi","description":"Item Selector for Flutter","archived":false,"fork":false,"pushed_at":"2024-04-10T13:35:37.000Z","size":533,"stargazers_count":4,"open_issues_count":4,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T04:35:52.769Z","etag":null,"topics":["dart","flutter","gridview","listview","selection"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/item_selector","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpnurmi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-02T13:47:36.000Z","updated_at":"2023-05-22T21:13:09.000Z","dependencies_parsed_at":"2025-02-18T22:32:27.950Z","dependency_job_id":"776050b2-1f5c-463b-8788-d16ee708df06","html_url":"https://github.com/jpnurmi/item_selector","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpnurmi%2Fitem_selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpnurmi%2Fitem_selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpnurmi%2Fitem_selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpnurmi%2Fitem_selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpnurmi","download_url":"https://codeload.github.com/jpnurmi/item_selector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248358549,"owners_count":21090401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","gridview","listview","selection"],"created_at":"2024-10-13T13:14:50.668Z","updated_at":"2025-04-11T06:40:59.954Z","avatar_url":"https://github.com/jpnurmi.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Item Selector for Flutter\n\n[![pub](https://img.shields.io/pub/v/item_selector.svg)](https://pub.dev/packages/item_selector)\n[![license: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![build](https://github.com/jpnurmi/item_selector/workflows/build/badge.svg)\n[![codecov](https://codecov.io/gh/jpnurmi/item_selector/branch/main/graph/badge.svg)](https://codecov.io/gh/jpnurmi/item_selector)\n\nA generic [Flutter](https://flutter.dev) item selector that works with\nListView, GridView, Row, Column, or basically any parent widget that\ncan have indexed child widgets. It supports single-selection by tap,\nand multi-selection by long-press and drag with auto-scrolling.\n\n## Preview\n\n| ListView | GridView |\n|:---:|:---:|\n| ![ListView](https://raw.githubusercontent.com/jpnurmi/item_selector/master/doc/images/listview.gif \"ListView\") | ![GridView](https://raw.githubusercontent.com/jpnurmi/item_selector/master/doc/images/gridview.gif \"GridView\") |\n\n| Column | Custom |\n|:---:|:---:|\n| ![Column](https://raw.githubusercontent.com/jpnurmi/item_selector/master/doc/images/column.gif \"Column\") | ![Custom](https://raw.githubusercontent.com/jpnurmi/item_selector/master/doc/images/custom.gif \"Custom\") |\n\n## Usage\n\nTo use this package, add `item_selector` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).\n\n```dart\nItemSelectionController(\n  child: ListView(\n    children: List.generate(10, (int index) {\n      return ItemSelectionBuilder(\n        index: index,\n        builder: (BuildContext context, int index, bool selected) {\n          return Text('$index: $selected');\n        },\n      );\n    }),\n  ),\n)\n```\n\n## Thanks\n\nItem Selector is based on [Multi Select GridView in Flutter - by Simon Lightfoot](https://gist.github.com/slightfoot/a002dd1e031f5f012f810c6d5da14a11).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpnurmi%2Fitem_selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpnurmi%2Fitem_selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpnurmi%2Fitem_selector/lists"}