advanced_dropdown 1.0.4 copy "advanced_dropdown: ^1.0.4" to clipboard
advanced_dropdown: ^1.0.4 copied to clipboard

A customizable Flutter dropdown with search, single-select, and multi-select support.

πŸ“Έ Screenshots #

Single Select Multi Select With Search With Search
[Single Select] [Multi Select] [With Search] [With Search]

🧩 Custom Dropdown for Flutter #

A fully customizable dropdown widget for Flutter that supports single-select, multi-select, and search β€” all in one widget.
Lightweight, flexible, and easy to integrate into any Flutter project.


πŸ“± Platform Support #

Platform Supported Tested
Android βœ… βœ…
iOS βœ… βœ…
Web βœ… βœ…
Windows βœ… βš™οΈ
macOS βœ… βš™οΈ
Linux βœ… βš™οΈ

πŸ’‘ Works with Flutter 3.0+ and Dart 3.0+


✨ Features #

βœ… Single Select (default) β€” behaves like a normal dropdown
βœ… Multi Select β€” users can select multiple items
βœ… Searchable Dropdown β€” optional search bar for filtering
βœ… Flexible Decoration β€” customize dropdown and list appearance
βœ… Custom InputDecoration for search bar
βœ… Auto position below the button
βœ… Lightweight (~3 KB compressed)
βœ… No external dependencies


πŸš€ Installation #

Add to your .dart file:

const Text('1️⃣ Default Dropdown (single select)'),
CustomDropdown(
  items: fruits,
  onChanged: (value) => setState(() => defaultSelected = value),
),


const Text('2️⃣ Single Select Dropdown'),
CustomDropdown(
  items: fruits,
  onChanged: (value) => setState(() => singleSelected = value),
),


const Text('3️⃣ Multi Select Dropdown'),
CustomDropdown(
  items: fruits,
  isMultiSelect: true,
  onChanged: (values) => setState(() => multiSelected = List<String>.from(values)),
),


const Text('4️⃣ Searchable Dropdown (single)'),
CustomDropdown(
  items: fruits,
  isSearch: true,
  onChanged: (value) => setState(() => decoratedSelected = value),
),


const Text('5️⃣ Searchable Dropdown (multi)'),
CustomDropdown(
  items: fruits,
  isSearch: true,
  isMultiSelect: true,
  onChanged: (values) => setState(() => searchSelected = List<String>.from(values)),
),


const Text('6️⃣ Custom Decorated Dropdown'),
CustomDropdown(
  items: fruits,
  isSearch: true,
  isMultiSelect: true,
  decoration: BoxDecoration(
    color: Colors.purple.shade50,
    borderRadius: BorderRadius.circular(16),
    border: Border.all(color: Colors.purple, width: 2),
  ),
  dropdownDecoration: BoxDecoration(
    color: Colors.white,
    borderRadius: BorderRadius.circular(16),
    boxShadow: [
      BoxShadow(
        color: Colors.purple.withValues(alpha: 0.3),
        blurRadius: 5,
        offset: const Offset(0, 3),
      ),
    ],
  ),
  inputDecoration: const InputDecoration(
    hintText: 'Search fruits...',
    border: OutlineInputBorder(),
    isDense: true,
  ),
  onChanged: (values) => setState(() => searchSelected = List<String>.from(values)),
),
3
likes
0
points
288
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter dropdown with search, single-select, and multi-select support.

Repository (GitHub)
View/report issues

Topics

#dropdown #flutter-widget #ui-components #custom-widget #reusable-ui

License

unknown (license)

Dependencies

flutter

More

Packages that depend on advanced_dropdown