국가 코드 선택, 실시간 검증 및 장치의 연락처 선택기와의 통합을 내장한 플러터 위젯입니다. 선택된 국가에 따라 입력을 자동으로 형식화하고 검증함으로써 국제 전화번호 입력을 간소화합니다. 이 패키지는 다양한 지역에서 전화번호를 입력해야 하는 양식에서 사용자 경험을 향상시키기 위해 설계되었습니다.
사용 사례
국제 전화번호 수집
국가별 규칙을 사용한 폼 검증
연락처 선택기 통합
동적 국가 코드 선택
사용자 친화적인 전화 입력 UI
모바일 앱 등록 프로세스
주요 기능
국가 코드 자동 감지
실시간 입력 검증
연락처 선택기 통합
사용자 지정 스타일
다중 로케일 지원
자동 형식 지정
적합한 대상
글로벌 애플리케이션
사용자 등록 양식
고객 서비스 앱
국제 전화 입력이 필요한 앱
강력한 전화 입력 처리가 필요한 개발자
고려 사항
완전한 국가 데이터를 위해 인터넷이 필요합니다
연락처 접근을 위해 추가 권한이 필요할 수 있습니다
국가 목록의 사용자 정의 제한
포맷 로직에 대한 외부 종속성에 의존합니다
매우 큰 데이터 세트에 최적화되지 않음
초기 설정에는 구성이 필요할 수 있습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
A Highly customizable Phone input Flutter widget that supports country code, validation and contact picker.
Features
Phone number with international validation
Include only specific countries
Exclude specific countries
Set a phone number using a controller (Selected country will be updated automatically)
Pick a phone number from contacts list
Getting started
Install the package extended_phone_number_input:
flutter pub add extended_phone_number_input
If you target Android 11+ (API 30+) and want to use the build-in contact picker you need to add the android.permission.READ_CONTACTS permission on the AndroidManifest.xml as this permission will be requested automatically.
Usage
A full and rich example can be found in /example folder.