v0.2.0item_selector
एक सामान्य आइटम चयनकर्ता जो ListView, GridView, Row, Column, या मूल रूप से किसी भी मुख्य विजेट के साथ काम करता है जो इंडेक्स वाले बच्चे विजेट को समर्थित करता है।
34लाइक 1530-दिन डाउनलोड140Pub अंक
AndroidiOSWebmacOSWindowsLinux
Flutter के लिए आइटम सेलेक्टर
{"sdk":"flutter"}^0.3.0{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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.
| ListView | GridView |
|---|---|
| ListView | GridView |
| Column | Custom |
|---|---|
| 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.