multiple_select

License Pub

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

select.gif

Getting Started

dependencies:
 multiple_select: ^0.1.11

Usage example

MultipleSelect

MultipleSelect.showMultipleSelector(
                context,
                dataList: List.generate(15, (index) => MultipleSelectItem.build(value: index, display: '第$index项显示内容', content: '第$index项下拉内容')),
              ).then((selectedList) {
                if (selectedList != null) selectedList.forEach((item) => print(item.display));
              });

MultipleDropDown

List<MultipleSelectItem> elements = List.generate(15, (index) => MultipleSelectItem.build(value: index, display: '$index display', content: '$index content'));

List _selectedValues = elements.where((element) => element.value % 2 == 0).map((item) => item.value).toList();
MultipleDropDown(
          placeholder: '请选择',
          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.

Libraries

multi_drop_down
multiple_select