update dependency
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
A flutter package for showing a country code selector.
|
A flutter package for showing a country code selector.
|
||||||
|
|
||||||
It supports i18n.
|
It supports i18n for 70 languages.
|
||||||
|
|
||||||
<img src="https://raw.githubusercontent.com/Salvatore-Giordano/CountryCodePicker/master/screenshots/screen1.png" width="240"/>
|
<img src="https://raw.githubusercontent.com/Salvatore-Giordano/CountryCodePicker/master/screenshots/screen1.png" width="240"/>
|
||||||
<img src="https://raw.githubusercontent.com/Salvatore-Giordano/CountryCodePicker/master/screenshots/screen2.png" width="240"/>
|
<img src="https://raw.githubusercontent.com/Salvatore-Giordano/CountryCodePicker/master/screenshots/screen2.png" width="240"/>
|
||||||
|
|||||||
@@ -125,48 +125,39 @@ class _MyAppState extends State<MyApp> {
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
width: 400,
|
width: 400,
|
||||||
height: 60,
|
height: 60,
|
||||||
child: Padding(
|
child: CountryCodePicker(
|
||||||
padding: const EdgeInsets.all(8.0),
|
onChanged: print,
|
||||||
child: CountryCodePicker(
|
hideMainText: true,
|
||||||
onChanged: print,
|
showFlagMain: true,
|
||||||
hideMainText: true,
|
showFlag: false,
|
||||||
showFlagMain: true,
|
initialSelection: 'TF',
|
||||||
showFlag: false,
|
hideSearch: true,
|
||||||
initialSelection: 'TF',
|
showCountryOnly: true,
|
||||||
hideSearch: true,
|
showOnlyCountryWhenClosed: true,
|
||||||
showCountryOnly: true,
|
alignLeft: true,
|
||||||
showOnlyCountryWhenClosed: true,
|
|
||||||
alignLeft: true,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 400,
|
width: 400,
|
||||||
height: 60,
|
height: 60,
|
||||||
child: Padding(
|
child: CountryCodePicker(
|
||||||
padding: const EdgeInsets.all(8.0),
|
onChanged: (e) => print(e.toLongString()),
|
||||||
child: CountryCodePicker(
|
initialSelection: 'TF',
|
||||||
onChanged: (e) => print(e.toLongString()),
|
showCountryOnly: true,
|
||||||
initialSelection: 'TF',
|
showOnlyCountryWhenClosed: true,
|
||||||
showCountryOnly: true,
|
favorite: ['+39', 'FR'],
|
||||||
showOnlyCountryWhenClosed: true,
|
|
||||||
favorite: ['+39', 'FR'],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 60,
|
height: 60,
|
||||||
child: Padding(
|
child: CountryCodePicker(
|
||||||
padding: const EdgeInsets.all(8.0),
|
enabled: false,
|
||||||
child: CountryCodePicker(
|
onChanged: (c) => c.name,
|
||||||
enabled: false,
|
initialSelection: 'TF',
|
||||||
onChanged: (c) => c.name,
|
showCountryOnly: true,
|
||||||
initialSelection: 'TF',
|
showOnlyCountryWhenClosed: true,
|
||||||
showCountryOnly: true,
|
favorite: ['+39', 'FR'],
|
||||||
showOnlyCountryWhenClosed: true,
|
|
||||||
favorite: ['+39', 'FR'],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
|
|
||||||
modal_bottom_sheet: ^2.0.0
|
modal_bottom_sheet: ^2.0.0
|
||||||
collection: ^1.15.0-nullsafety.4
|
collection: ^1.15.0
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
assets:
|
assets:
|
||||||
|
|||||||
Reference in New Issue
Block a user