An open API service indexing awesome lists of open source software.

https://github.com/wu9007/multiple_select


https://github.com/wu9007/multiple_select

flutter-demo flutter-dev flutter-plugin flutter-widget

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# multiple_select

[![License][license-image]][license-url]
[![Pub](https://img.shields.io/pub/v/multiple_select.svg?style=flat-square)](https://pub.dartlang.org/packages/multiple_select)

A versatile and beautiful multi-drop-down component for App developers.🚀

## Getting Started

```yaml
dependencies:
multiple_select: ^0.1.24
```

## Usage example

### Matching query and Multiple select
![](https://github.com/wechat-program/album/blob/master/gif/flutter/form-component/mylti_search_select.gif?raw=true)
```dart
List> items = List.generate(
150,
(index) =>
Item.build(
value: index,
display: '$index display',
content: '$index content' * (index + 1),
),
);

List _initValue = [1, 2, 6];

MultiFilterSelect(
allItems: items,
initValue: _initValue,
selectCallback: (List selectedValue) => print(selectedValue.length,
textColor: Colors.black,
backgroundColor: Colors.blue,
selectedTextColor: Colors.black,
selectedBackgroundColor: Colors.grey,),
)
```

### Drop down with no filter
![](https://github.com/wechat-program/album/blob/master/gif/flutter/form-component/multi_select.gif?raw=true)
```dart
/// Simulate 15 data
List elements = List.generate(
15,
(index) => MultipleSelectItem.build(
value: index,
display: '$index display',
content: '$index content',
),
);

List _selectedValues = [];

MultipleDropDown(
hintText: '请选择',
disabled: false,
values: _selectedValues,
elements: elements,
)
```

## Contribute

We would ❤️ to see your contribution!

## License

Distributed under the MIT license. See ``LICENSE`` for more information.

## About

Created by Shusheng.

[license-image]: https://img.shields.io/badge/License-MIT-blue.svg
[license-url]: LICENSE