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

country_list_pick 표지
패키지 상세v1.0.1+6

country_list_pick

국가 코드를 선택하기 위한 플러터 플러그인 프로젝트로 국가 코드, 다이얼 코드, 국기, 국가 이름을 표시합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
24
좋아요
135
Pub 점수
130

패키지 설치

flutter pub add country_list_pick

패키지 개요

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

광범위한 목록에서 국가를 선택할 수 있도록 해주는 플러터 플러그인으로, 국가의 국기, 이름, 국가 코드 및 다이얼 코드를 표시합니다. 국제 전화번호 입력 또는 위치 선택이 필요한 양식에 원활하게 통합될 수 있도록 설계되었으며, 안드로이드, iOS, 웹, 맥OS, 윈도우, 리눅스 등 여러 플랫폼을 지원합니다. 직관적인 인터페이스를 통해 국가 선택을 간편하게 하고 글로벌 애플리케이션에 필요한 핵심 데이터를 제공합니다.

사용 사례

  • 국제 전화번호 입력
  • 사용자 위치 선택
  • 글로벌 폼 필드
  • 다국어 앱 로컬라이제이션
  • 여행 또는 배송 주소 양식

주요 기능

  • 국가 깃발 표시
  • 국가 이름과 코드를 표시합니다
  • 다이얼 코드 포함
  • 여러 플랫폼을 지원합니다
  • 텍스트 필드와의 간편한 통합

적합한 대상

  • 국가 선택이 필요한 앱
  • 전화번호 입력 양식
  • 글로벌 사용자 온보딩
  • 여행 및 물류 앱
  • 다국적 전자상거래 플랫폼

고려 사항

  • 완전한 플래그 로딩을 위해 인터넷이 필요합니다(원격 이미지를 사용하는 경우)
  • 플래그 자산으로 인해 앱 크기가 증가할 수 있습니다
  • UI 사용자 정의 옵션이 제한적
  • 매우 큰 국가 목록에 최적화되지 않음
  • 국가 데이터에 대해 외부 소스에 의존합니다

원본 README

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

country list pick

Flutter plugin to pick country with output name, code, dialcode and flag of country

Usage

To use this plugin, add country_list_pick as a dependency in your pubspec.yaml.

    CountryListPick(
        appBar: AppBar(
          backgroundColor: Colors.blue,
          title: Text('Choisir un pays'),
        ),
        
        // if you need custome picker use this
        // pickerBuilder: (context, CountryCode countryCode){
        //   return Row(
        //     children: [
        //       Image.asset(
        //         countryCode.flagUri,
        //         package: 'country_list_pick',
        //       ),
        //       Text(countryCode.code),
        //       Text(countryCode.dialCode),
        //     ],
        //   );
        // },

        // To disable option set to false
        theme: CountryTheme(
          isShowFlag: true,
          isShowTitle: true,
          isShowCode: true,
          isDownIcon: true,
          showEnglishName: true,
        ),
        // Set default value
        initialSelection: '+62',
        // or
        // initialSelection: 'US'
        onChanged: (CountryCode code) {
          print(code.name);
          print(code.code);
          print(code.dialCode);
          print(code.flagUri);
        },
        // Whether to allow the widget to set a custom UI overlay
        useUiOverlay: true,
        // Whether the country list should be wrapped in a SafeArea
        useSafeArea: false
        ),

To call feedback or getting data from this widget, you can make function in onChanged

Special Thanks
  • Salvatore Giordano, CountryCodePicker CountryCodePicker
  • @tomrozb and @dev-fema for changelog 1.0.0+3
  • @giaotuancse for changelog 1.0.0+4
  • @joshuachinemezu for changelog 1.0.0+6 - 1.0.0+8
  • @u-gin for chaangelog 1.0.0+9
  • @imurnane for chaangelog 1.0.1+1
  • @jpainam for chaangelog 1.0.1+2
  • @d00rman for chaangelog 1.0.1+3
  • @MohammadKashaniJabbari for chaangelog 1.0.1+4

카테고리

소스 저장소

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

아직 데이터가 없습니다.