Package selection guidance compiled from public package information, community data, and project usage.
Easy Search is a highly customizable search component designed to streamline development by providing a flexible and reusable search interface. Built with Flutter, it offers out-of-the-box functionality for filtering lists, handling real-time input, and supporting various UI customizations. Ideal for apps requiring fast, intuitive search experiences, it reduces boilerplate code and accelerates feature implementation. The package integrates seamlessly into existing projects and supports responsive design across platforms.
For the search to work in an offline list, we need to implement the following items in your model or in your object's data class:
toString, equals and also hashcode
Here's how to do it
classModelExample{
finalString name;
finalint age;
ModelExample({this.name, this.age});
@overrideStringtoString() {
return'$name$age';
}
factoryModelExample.fromJson(Map<String, dynamic> json) {
if (json == null) returnnull;
returnModelExample(
name: json["name"],
age: json["age"],
);
}
staticList<ModelExample> fromJsonList(List list) {
if (list == null) returnnull;
return list.map((item) => ModelExample.fromJson(item)).toList();
}
//In this case I customized it so that the search returns everything that contains part of the name or age@overrideoperator ==(object) => this.name.toLowerCase().contains(object.toLowerCase()) || this.age.toString().contains(object);
@overrideintget hashCode => name.hashCode ^ age.hashCode;
}
Roadmap
This is our current roadmap. Please, feel free to request additions/changes.
Feature
Progress
Offline List
✅
Http Request Support
✅
Widget Consume for ChangeNotifier
✅
Widget consume for NotifierValue
✅
Just one selected item
✅
Multiple item selection
✅
Search after last input
✅
Cancel to keep old items
✅
Remove items by touch
✅
Nice layout default
✅
Custom layout support
✅
Progress on search request
✅
Custom selected animation
✅
Custom animated action buttons
✅
Custom message when no data found
✅
Custom theme colors
✅
Many other customizations
✅
Documentation - in progress
💔
Features and bugs
Please send feature requests and bugs at the issue tracker.