https://github.com/satyam-2001/multi-select-container
Multi Select Container is a pub package which provides a convenient and customizable way to implement multi-select functionality in a Flutter application.
https://github.com/satyam-2001/multi-select-container
dart flutter multi-select-container package pub-dev
Last synced: about 1 month ago
JSON representation
Multi Select Container is a pub package which provides a convenient and customizable way to implement multi-select functionality in a Flutter application.
- Host: GitHub
- URL: https://github.com/satyam-2001/multi-select-container
- Owner: Satyam-2001
- License: mit
- Created: 2023-06-15T04:12:05.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-15T06:29:30.000Z (over 2 years ago)
- Last Synced: 2025-01-14T00:35:34.867Z (about 1 year ago)
- Topics: dart, flutter, multi-select-container, package, pub-dev
- Language: C++
- Homepage: https://pub.dev/packages/multi_select_container
- Size: 269 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ✔️ Multi Select Container
Multi Select Container is a Flutter package that provides a customizable container for selecting multiple items from a list. It allows you to easily implement a multi-select feature in your Flutter application.
## Features
* Select multiple items from a list.
* Customize the appearance of the container.
* Easily integrate with existing Flutter projects.
* Support for both iOS and Android platforms.
## Getting started
To start using the package, add the dependencies in your pubspec.yaml and import.
## Usage
To better understand the usage of the MultiSelectBuilder widget refer to an example section.
```dart
MultiSelectBuilder(builder: (context, controller) {
return Column(
children: [
for(String item in itemList)
MultiSelectContainer(
tag: item,
controller: controller,
child: const Text(item),
),
],
),
});
```
## Parameters
* `tag`: A unique identifier for the container.
* `controller`: An instance of MultiSelectController to control the selection.
* `child`: The child widget to display within the container.
* `colorOnSelected`: The color to apply when the container is selected.
* `onTap`: A callback function to handle the tap event on the container.
* `elevation`: The elevation of the container card.
* `radius`: The border radius of the container card.
* `widgetOnTop`: An optional widget to display on top of the container.