flutter_country_selector
国選択ツールを使って国を選択する方法
Flutter用の国選択ツール
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Country selector of the phone_form_field package exported in its own package.
Demo available here: https://cedvdb.github.io/flutter_country_selector/
Use CountrySelector.page if you need to show the selector inside a widget that is full screen. If you need to show the selector inside a modal of some sort, use CountrySelector.sheet instead.
Navigator.of(context).push(
MaterialPageRoute(
builder: (ctx) => CountrySelector.page(
onCountrySelected: (country) => Navigator.of(context).pop(country),
),
),
)
Use CountrySelectorLocalization.of(context)?.countryName(isoCode) when you need to dynamically localize the name of a country.
Example setup:
const MaterialApp(
locale: Locale('en'),
supportedLocales: [
Locale('en'),
],
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
CountrySelectorLocalization.delegate,
],
// ...
)
Some users have expressed their need to change some flags due to political reasons, or stylistic reasons. You might also wish to add your own flags. To do so refer to this issue: https://github.com/cedvdb/phone_form_field/issues/222
依存関係一覧 9 件
{"sdk":"flutter"}>=0.18.0 <=1.0.0^0.1.5^5.0.0^1.0.0^9.0.2{"sdk":"flutter"}any^6.0.0用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗