update dependency

This commit is contained in:
Salvatore Giordano
2021-03-13 12:41:07 +01:00
parent 01aa7502cc
commit 2324391cf1
3 changed files with 25 additions and 34 deletions

View File

@@ -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"/>

View File

@@ -125,8 +125,6 @@ class _MyAppState extends State<MyApp> {
SizedBox( SizedBox(
width: 400, width: 400,
height: 60, height: 60,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: CountryCodePicker( child: CountryCodePicker(
onChanged: print, onChanged: print,
hideMainText: true, hideMainText: true,
@@ -139,12 +137,9 @@ class _MyAppState extends State<MyApp> {
alignLeft: true, alignLeft: true,
), ),
), ),
),
SizedBox( SizedBox(
width: 400, width: 400,
height: 60, height: 60,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: CountryCodePicker( child: CountryCodePicker(
onChanged: (e) => print(e.toLongString()), onChanged: (e) => print(e.toLongString()),
initialSelection: 'TF', initialSelection: 'TF',
@@ -153,12 +148,9 @@ class _MyAppState extends State<MyApp> {
favorite: ['+39', 'FR'], favorite: ['+39', 'FR'],
), ),
), ),
),
SizedBox( SizedBox(
width: 100, width: 100,
height: 60, height: 60,
child: Padding(
padding: const EdgeInsets.all(8.0),
child: CountryCodePicker( child: CountryCodePicker(
enabled: false, enabled: false,
onChanged: (c) => c.name, onChanged: (c) => c.name,
@@ -168,7 +160,6 @@ class _MyAppState extends State<MyApp> {
favorite: ['+39', 'FR'], favorite: ['+39', 'FR'],
), ),
), ),
),
], ],
), ),
), ),

View File

@@ -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: