패키지, 저장소 및 앱 카테고리 검색

field_suggestion 표지
패키지 상세v0.2.6

field_suggestion

높은 사용자 정의 가능성이 있으며 간단하고 제어 가능한 자동 완성 필드를 생성합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
643
좋아요
45
Pub 점수
160

패키지 설치

flutter pub add field_suggestion

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

FieldSuggestion은 개발자가 고도로 사용자 정의 가능하고 간단하며 제어 가능한 자동 완성 필드를 생성할 수 있도록 해주는 Flutter 패키지입니다. 실시간 제안을 갖춘 입력 필드를 구축하기 위한 깔끔한 API를 제공하며, 텍스트 및 사용자 지정 위젯 렌더링을 모두 지원합니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux 등 주요 모든 플랫폼에서 작동하여 스마트한 입력 처리가 필요한 크로스플랫폼 애플리케이션에 이상적입니다. 제안 표시 제어, 필터링 로직, 스타일링에 내장된 제어 기능을 통해 복잡함 없이 유연성을 제공합니다.

사용 사례

  • 동적 제안이 있는 폼 입력
  • 예측 텍스트가 있는 검색 바
  • 양식 내 사용자 정의 드롭다운
  • 사용자 친화적인 데이터 입력 인터페이스
  • 대규모 데이터셋의 실시간 필터링

주요 기능

  • 높은 사용자 정의 가능한 제안 UI
  • 크로스 플랫폼 호환성
  • 간단하고 직관적인 API
  • 제안 내 사용자 정의 위젯 지원
  • 내장된 필터링 및 제어 로직
  • 경량이고 성능이 뛰어남

적합한 대상

  • 양식 중심 앱을 개발하는 개발자
  • 일관된 자동 완성 동작이 필요한 팀
  • 플랫폼에 관계없이 입력 컴포넌트가 필요한 앱
  • 복잡한 사용자 입력이 필요한 프로젝트

고려 사항

  • 데이터 소스 로직의 수동 구현이 필요합니다
  • 제한된 내장 테마 또는 스타일 프리셋
  • 정적 또는 예측 가능한 제안 원본에 가장 적합

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.


Field Suggesion's Logo

Field Suggesion's Title Logo


Installing

Usage

In this example, we're using the FieldSuggestion.network widget to display suggestions for a username input field. We've provided an inputDecoration with a hint text, a future function that fetches the suggestions based on the user input, a textController that controls the text in the input field, a boxController that controls the visibility of the suggestion box, and a builder function that defines how the suggestions are displayed in the suggestion box.

Note that FieldSuggestion uses generics to allow for suggestions of different types. In the example above, we're using String as the type parameter for FieldSuggestion.network However, any other type can be used, depending on the type of suggestions being displayed.

FieldSuggestion<String>.network(
  inputDecoration: InputDecoration(
    hintText: 'Username', // optional
  ),
  future: (input) => future.call(input),
  textController: controller,
  boxController: boxController, // optional
  builder: (context, snapshot) {
    if (snapshot.connectionState != ConnectionState.done) {
      return Center(child: CircularProgressIndicator());
    }

    final result = snapshot.data ?? [];
    return ListView.builder(
      itemCount: result.length,
      itemBuilder: (context, index) {
        return GestureDetector(
          onTap: () {
            setState(() => controller.text = result[index]);
            boxControllerNetwork.close?.call();
          },
          child: Card(child: ListTile(title: Text(result[index]))),
        );
      },
    );
  },
)

Contributing

  • For information regarding contributions, please refer to CONTRIBUTING.md file.

카테고리

의존성

의존성 목록 1 개

  • highlightable^1.0.5

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.