Custom Multi Search
A customizable multi-select dropdown widget with search functionality for Flutter applications.
Built with MobX for reactive state management, smooth animations, and form validation support.
π Table of Contents
β¨ Features
- π Searchable multi-select dropdown β quickly find and select items.
- π¨ Customizable display β render items as text, icons, or custom widgets.
- β‘ MobX-powered state management β ensures reactive and scalable behavior.
- πͺ Smooth animations β professional and responsive UI interactions.
- π± Material Design styling β seamless Flutter integration.
- β Form validation support β integrate directly into forms.
πΈ Preview
Example
![]() |
![]() |
![]() |
![]() |
π Installation
Add this to your packageβs pubspec.yaml file:
dependencies:
custom_multi_search: ^1.0.9
Then run:
flutter pub get
π Usage
import 'package:custom_multi_search/custom_multi_search.dart';
class ExamplePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Padding(
padding: const EdgeInsets.all(16),
child: CustomMultiSearch<String>(
items: ['Apple', 'Banana', 'Mango', 'Orange'],
hintText: 'Select fruits',
onChanged: (selectedItems) {
print(selectedItems); // List of selected values
},
validator: (values) {
if (values == null || values.isEmpty) {
return 'Please select at least one item';
}
return null;
},
),
),
);
}
}
βοΈ Parameters
| Property | Type | Description |
|---|---|---|
items |
List<T> |
The list of items to display in the dropdown. |
onChanged |
Function(List<T>) |
Callback when items are selected/deselected. |
hintText |
String |
Placeholder text shown when no selection is made. |
validator |
FormFieldValidator<List<T>>? |
For form validation. |
chipBuilder |
Widget Function(T) |
Customize the display of selected items. |
itemBuilder |
Widget Function(T) |
Customize how items are displayed in the dropdown. |
π€ Contributing
Contributions are welcome! π
- Fork the repo
- Create a feature branch
- Submit a Pull Request
Feel free to open an issue for bugs or feature requests.
π License
This project is licensed under the MIT License.
π Acknowledgments
Libraries
- custom_multi_search
- A customizable multi-select dropdown widget with search functionality.

.png)
.png)
.png)