v0.2.0item_selector
一个通用的项目选择器,可与 ListView、GridView、Row、Column 或基本上任何可以包含索引子项的父级小部件一起使用。
34喜欢 34近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
Flutter 的项目选择器
以下为英文项目原文快照,最新内容请访问 GitHub。
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.
| ListView | GridView |
|---|---|
![]() |
![]() |
| Column | Custom |
|---|---|
![]() |
![]() |
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');
},
);
}),
),
)
Item Selector is based on Multi Select GridView in Flutter - by Simon Lightfoot.
依赖清单 3 项
{"sdk":"flutter"}^0.3.0{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗