Search in Pub with

multiselectable_dropdown

Multiselect Dropdown package.Clearly you'll know which purpose to use sometime we want to add multiselectable dropdown in our product.This package is the solution for the problem.

Reference From MultiSelect Package

dropdown

Example

class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  List<MultipleSelectItem> elements = List.generate(
    15,
    (index) => MultipleSelectItem.build(
      value: index,
      display: '$index display',
      content: '$index content',
    ),
  );

  List _selectedValues = [];

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("MultiSelect DropDown"),
      ),
      body: MultipleDropDown(
        placeholder: 'Hint Text',
        disabled: false,
        values: _selectedValues,
        elements: elements,
      ),
    );
  }
}

Libraries

main
multiple_dropdown
multiple_select