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

flutter_multiselect 표지
패키지 상세v1.0.2

flutter_multiselect

iOS 및 Android와 호환되며 중립적인 디자인을 사용하는 다중 선택 UI 위젯용 Flutter 패키지입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
279
좋아요
51
Pub 점수
150

패키지 설치

flutter pub add flutter_multiselect

패키지 개요

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

iOS 및 Android와 호환되는 크로스 플랫폼 다중 선택 UI 위젯을 제공하는 플러터 패키지입니다. 중립적인 디자인을 갖추고 있으며, 리스트에서 직관적인 상호작용을 통해 여러 항목을 선택할 수 있게 해줍니다. 양식, 필터, 태그 인터페이스에 적합합니다. 웹, macOS, Windows, Linux를 포함한 다양한 플랫폼에서 일관성을 유지하도록 설계되었으며, 접근성과 성능을 고려해 제작되었습니다. 기존 플러터 앱에 쉽게 통합될 수 있습니다.

사용 사례

  • 다중 선택 가능한 폼 입력
  • 다시보드의 필터 옵션
  • 콘텐츠 분류를 위한 태그 선택
  • 사용자 선호 설정
  • 동적 폼 필드

주요 기능

  • 크로스 플랫폼 호환성
  • 중립적이고 현대적인 디자인
  • 직관적인 다중 선택 제스처
  • 모든 주요 플러터 플랫폼 지원
  • 세밀한 레이블을 통해 접근 가능
  • 사용자 정의 가능한 칩 스타일

적합한 대상

  • 포괄적이고 플랫폼 간 호환성 있는 앱을 개발하는 개발자
  • 유연한 선택 패턴을 필요로 하는 앱
  • 일관성을 우선시하는 디자인 시스템
  • 플러터를 통한 풀스택 개발을 사용하는 팀
  • 경량이고 재사용 가능한 컴포넌트가 필요한 프로젝트

고려 사항

  • 제한된 내장 검증
  • 키보드 탐색에 대한 네이티브 지원 없음
  • 선택 상태를 수동으로 처리해야 합니다
  • 복잡한 테마를 위해 추가 스타일링이 필요할 수 있습니다
  • 페이지네이션 없이 대용량 데이터 세트에 최적화되지 않음

원본 README

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

flutter_multiselect

Flutter package for multi-select UI widget

pub package

Android and iOS screenshot- screenshot

Getting Started

  • Add the package into pubspec.yaml
dependencies:
  flutter_multiselect:
  • Import in your code
import 'package:flutter_multiselect/flutter_multiselect.dart';

Why? :wrench:

By default, there is no UI control for multi-select in iOS and Android, and my widget can be used to bridge this gap.

Example without customization :one:

child: MultiSelect(
  autovalidate: false,
  titleText: "Countries",
  validator: (value) {
    if (value == null) {
      return 'Please select one or more option(s)';
    }
  },
  errorText: 'Please select one or more option(s)',
  dataSource: [
    {
      "display": "Australia",
      "value": 1,
    },
    {
      "display": "Canada",
      "value": 2,
    },
    {
      "display": "India",
      "value": 3,
    },
    {
      "display": "United States",
      "value": 4,
    }
  ],
  textField: 'display',
  valueField: 'value',
  filterable: true,
  required: true,
  value: null,
  onSaved: (value) {
    print('The saved values are $value');
  }
),

Example with customization :two:

Check the colors and text to see the changes that it makes to the modal interface

child: MultiSelect(
    //--------customization selection modal-----------
    buttonBarColor: Colors.red,
    cancelButtonText: "Exit",
    titleText: "Custom Title",
    checkBoxColor: Colors.black,
    selectedOptionsInfoText: "Selected custom text (tap to remove)",
    selectedOptionsBoxColor: Colors.green,
    autovalidate: true,
    maxLength: 5, // optional
    //--------end customization selection modal------------
    validator: (dynamic value) {
      if (value == null) {
        return 'Please select one or more option(s)';
      }
      return null;
    },
    errorText: 'Please select one or more option(s)',
    dataSource: [
      {"name": "Afghanistan", "code": "AF"},
      {"name": "Åland Islands", "code": "AX"},
      {"name": "Albania", "code": "AL"},
    ],
    textField: 'name',
    valueField: 'code',
    filterable: true,
    required: true,
    onSaved: (value) {
      print('The saved values are $value');
    }),
    change: (value) {
      print('The selected values are $value');
    })

and of course you can check the full list of the parameters to personalize your modal!

Here, the complete list of parameters to modify the selection modal :clipboard:

Type Parameter
Color buttonBarColor
String cancelButtonText
IconData cancelButtonIcon
Color cancelButtonColor
Color cancelButtonTextColor
String saveButtonText
IconData saveButtonIcon
Color saveButtonColor
Color saveButtonTextColor
String clearButtonText
IconData clearButtonIcon
Color clearButtonColor
Color clearButtonTextColor
String deleteButtonTooltipText
IconData deleteIcon
Color deleteIconColor
Color selectedOptionsBoxColor
String selectedOptionsInfoText
Color selectedOptionsInfoTextColor
IconData checkedIcon
IconData uncheckedIcon
Color checkBoxColor
Color searchBoxColor
String searchBoxHintText
Color searchBoxFillColor
IconData searchBoxIcon
String searchBoxToolTipText
Size responsiveDialogSize

카테고리

소스 저장소

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

아직 데이터가 없습니다.