パッケージ、リポジトリ、アプリカテゴリを検索

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 など、すべての主要プラットフォームで動作します。

用途

  • 国際連絡フォーム
  • 電話認証付きユーザー登録
  • グローバルカスタマーサポートシステム
  • マルチリージョンアプリのサインアップ
  • ウェブおよびモバイルアプリにおける電話番号の検証

主な機能

  • 組み込み国選択ピッカー
  • 自動国コード検出
  • リアルタイム電話番号のフォーマット
  • クロスプラットフォーム互換性
  • カスタマイズ可能なスタイル
  • 検証サポート

適している対象

  • グローバルなターゲット層向けのアプリ
  • 電話番号の入力を必要とするフォーム
  • 国コードの統合が必要な開発者
  • 国際ユーザーを対象としたモバイルおよびウェブアプリケーション
  • 標準化された電話番号処理を必要とするプロジェクト

注意事項

  • 完全な機能を利用するにはインターネット接続が必要です
  • エッジケースに対処するための追加の検証ロジックが必要になる場合があります
  • カスタマイズオプションはUIの側面に限定されています
  • 下位の国データの正確さに依存します
  • 大規模な国リストによるパフォーマンスへの潜在的な影響

元の 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.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト