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

intl_phone_field 표지
패키지 상세v3.2.0

intl_phone_field

국제 전화 번호와 국가 코드를 함께 입력할 수 있도록 사용자 지정된 Flutter TextFormField입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
14.1만
좋아요
783
Pub 점수
145

패키지 설치

flutter pub add intl_phone_field

패키지 개요

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

intl_phone_field는 국제 전화번호 입력을 위한 사용자 지정 TextFormField를 제공하는 Flutter 패키지입니다. 자동 국가 코드 감지 및 선택 기능을 지원합니다. 사용자가 자신의 국가를 선택할 수 있도록 국가 선택기와 통합되어 있으며, 적절한 국가 코드를 자동으로 설정합니다. 국제 표준에 따라 전화번호의 검증과 형식 지정을 지원하여 글로벌 전화번호 입력이 필요한 양식에 이상적입니다. Android, iOS, Web, macOS, Windows, Linux 등 모든 주요 플랫폼에서 작동합니다.

사용 사례

  • 국제 연락 양식
  • 전화 인증을 통한 사용자 등록
  • 글로벌 고객 지원 시스템
  • 다중 지역 앱 가입
  • 웹 및 모바일 앱에서 전화번호 검증

주요 기능

  • 내장 국가 선택기
  • 자동 국가 코드 감지
  • 실시간 전화번호 형식 지정
  • 크로스 플랫폼 호환성
  • 사용자 지정 스타일
  • 검증 지원

적합한 대상

  • 글로벌 대상 사용자를 위한 앱
  • 전화번호 입력이 필요한 양식
  • 국가 코드 통합이 필요한 개발자
  • 국제 사용자를 대상으로 한 모바일 및 웹 애플리케이션
  • 표준화된 전화번호 처리가 필요한 프로젝트

고려 사항

  • 전체 기능을 사용하려면 인터넷 연결이 필요합니다
  • 경계 사례를 처리하기 위해 추가 검증 로직이 필요할 수 있습니다
  • 사용자 인터페이스 측면에만 맞춤 설정 옵션이 제한됨
  • 기초 국가 데이터 정확도에 따라 달라집니다
  • 대규모 국가 목록과 함께 가능한 성능 영향

원본 README

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

International Phone Field Package

pub package CI License: MIT

A customised Flutter TextFormField to input international phone number along with country code.

This widget can be used to make customised text field to take phone number input for any country along with an option to choose country code from a dropdown.

⚠️ The package is deprecated and this repository is no longer maintained ⚠️

As of June 2021, I, @marcaureln, have been maintaining this Flutter package initially created by @vanshg395. Regrettably, Vansh has been unresponsive, and I am unable to release new versions (the last release is 6 months old as of writing).

Considering this, I recommend users to explore alternatives on pub.dev or, if interested, fork this repository for continued support. Life can be hectic, and I wish Vansh is doing well.

Thank you for your understanding and continued support.

Old Readme

Screenshots

Installing

To use this package:

Run this command:

flutter pub add intl_phone_field

Or, add the following to your pubspec.yaml file:

dependencies:
  intl_phone_field: ^<latest_version>

Sometimes you may want to use the latest version of the package, instead of a published version. To do that, use the git syntax:

dependencies:
  intl_phone_field:
    git:
      url: git://github.com/vanshg395/intl_phone_field.git
      ref: master

How to Use

Simply create a IntlPhoneField widget, and pass the required params:

IntlPhoneField(
    decoration: InputDecoration(
        labelText: 'Phone Number',
        border: OutlineInputBorder(
            borderSide: BorderSide(),
        ),
    ),
    initialCountryCode: 'IN',
    onChanged: (phone) {
        print(phone.completeNumber);
    },
)

Use initialCountryCode to set an initial Country Code.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Comment on Issue or Pull Request, asking @all-contributors to add a contributor:

@all-contributors please add @<username> for <contributions>

<contributions>: See the Emoji Key (Contribution Types Reference) for a list of valid contribution types.

Maintainers

Contributors

Vansh Goel
Vansh Goel

💻
KNO3
KNO3

💻
Ling Li
Ling Li

💻
Anggara Putra Pratama
Anggara Putra Pratama

💻
JJ Geewax
JJ Geewax

💻
Keval Prajapati
Keval Prajapati

💻
Guillaume Launay
Guillaume Launay

💻
hans.huang
hans.huang

💻 📖
Gregor Weber
Gregor Weber

💻
Ooi Han Yi
Ooi Han Yi

💻
Jimmy Forrester-Fellowes
Jimmy Forrester-Fellowes

💻

LICENSE

This project is licensed under the MIT license. See LICENSE for more information.

카테고리

소스 저장소

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