libphonenumber 라이브러리를 사용하여 내장된 검증 기능을 제공하는 국제 전화번호 입력을 위한 플러터 패키지입니다. 국가별 표준에 따라 전화번호를 입력하고 형식을 지정할 수 있는 사용자 친화적인 인터페이스를 제공하며, 글로벌 사용자 간 정확한 데이터 수집을 보장합니다. 이 패키지는 입력 또는 선택된 기본값을 기반으로 국가를 자동 감지하고, 적절한 형식을 적용하며 실시간으로 입력된 번호를 검증합니다.
Here is a list of properties available to customize the widget:
Name
Type
Description
initialPhoneNumber
String
used to set initial phone number
initialSelection
String
used to set initial country code
errorText
String
use this to set an error message
hintText
String
sets hint
labelText
String
sets label
errorStyle
TextStyle
style applied to error message
hintStyle
TextStyle
style applied to hint
labelStyle
TextStyle
style applied to label
errorMaxLines
int
the maximum number of lines user can type
enabledCountries
List
the list of enabled countries to display
decoration
InputDecoration
decoration applied to the TextField widget
showCountryCodes
bool
shows the country code (default true)
showCountryFlags
bool
shows. the country flags (default true)
dropdownIcon
Widget
use this to customize dropdown icon
Contributions
Contributions of any kind are more than welcome! Feel free to fork and improve international_phone_input in any way you want, make a pull request, or open an issue.