Easy Search는 개발을 간소화하기 위해 유연하고 재사용 가능한 검색 인터페이스를 제공하는 매우 사용자 정의 가능한 검색 컴포넌트입니다. Flutter로 구현되어 있으며, 리스트 필터링, 실시간 입력 처리, 다양한 UI 커스터마이징 기능을 즉시 사용할 수 있습니다. 빠르고 직관적인 검색 경험을 필요로 하는 앱에 적합하며, 반복 코드를 줄이고 기능 구현 속도를 가속화합니다. 기존 프로젝트에 쉽게 통합 가능하며, 다양한 플랫폼에서 반응형 디자인을 지원합니다.
사용 사례
동적 목록 필터링 구현
검색 가능한 드롭다운 만들기
즉시 검색 인터페이스 구축
대규모 데이터셋에서 사용자 탐색 개선
양식에 검색 기능 추가하기
주요 기능
실시간 검색 입력 처리
사용자 정의 가능한 UI 및 스타일링
비동기 및 동기 필터링 지원
재사용 가능한 검색 위젯
가볍고 쉽게 통합 가능
적합한 대상
빠른 검색 구현을 찾는 개발자
필터링이 필요한 대규모 데이터 세트를 가진 앱
일관된 검색 컴포넌트를 필요로 하는 UI 중심 애플리케이션
개발 속도와 유지보수성을 우선시하는 팀
고려 사항
복잡한 필터링 로직을 위해 수동 설정이 필요합니다
고급 검색 기능(예: 퍼지 매칭)에 대한 내장 지원이 제한적
플랫폼별 최적화에 대한 언급 없음
복잡한 사용 사례를 위해 외부 상태 관리에 의존합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
A highly customizable search component to accelerate your development.
Overview
There are many search or search components for Flutter, however this one comes to perform search in Offline List,
or HTTP Search and more, it already comes with nice default layout and many customizations,
and we can focus more on writing amazing applications.
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.