diff --git a/README.md b/README.md
index 001c43b..c15d026 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
A flutter package for showing a country code selector.
-It supports i18n.
+It supports i18n for 70 languages.
diff --git a/example/lib/main.dart b/example/lib/main.dart
index 8520606..d0c2b13 100644
--- a/example/lib/main.dart
+++ b/example/lib/main.dart
@@ -125,48 +125,39 @@ class _MyAppState extends State {
SizedBox(
width: 400,
height: 60,
- child: Padding(
- padding: const EdgeInsets.all(8.0),
- child: CountryCodePicker(
- onChanged: print,
- hideMainText: true,
- showFlagMain: true,
- showFlag: false,
- initialSelection: 'TF',
- hideSearch: true,
- showCountryOnly: true,
- showOnlyCountryWhenClosed: true,
- alignLeft: true,
- ),
+ child: CountryCodePicker(
+ onChanged: print,
+ hideMainText: true,
+ showFlagMain: true,
+ showFlag: false,
+ initialSelection: 'TF',
+ hideSearch: true,
+ showCountryOnly: true,
+ showOnlyCountryWhenClosed: true,
+ alignLeft: true,
),
),
SizedBox(
width: 400,
height: 60,
- child: Padding(
- padding: const EdgeInsets.all(8.0),
- child: CountryCodePicker(
- onChanged: (e) => print(e.toLongString()),
- initialSelection: 'TF',
- showCountryOnly: true,
- showOnlyCountryWhenClosed: true,
- favorite: ['+39', 'FR'],
- ),
+ child: CountryCodePicker(
+ onChanged: (e) => print(e.toLongString()),
+ initialSelection: 'TF',
+ showCountryOnly: true,
+ showOnlyCountryWhenClosed: true,
+ favorite: ['+39', 'FR'],
),
),
SizedBox(
width: 100,
height: 60,
- child: Padding(
- padding: const EdgeInsets.all(8.0),
- child: CountryCodePicker(
- enabled: false,
- onChanged: (c) => c.name,
- initialSelection: 'TF',
- showCountryOnly: true,
- showOnlyCountryWhenClosed: true,
- favorite: ['+39', 'FR'],
- ),
+ child: CountryCodePicker(
+ enabled: false,
+ onChanged: (c) => c.name,
+ initialSelection: 'TF',
+ showCountryOnly: true,
+ showOnlyCountryWhenClosed: true,
+ favorite: ['+39', 'FR'],
),
),
],
diff --git a/pubspec.yaml b/pubspec.yaml
index 14e9e13..707eb9e 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -11,7 +11,7 @@ dependencies:
sdk: flutter
modal_bottom_sheet: ^2.0.0
- collection: ^1.15.0-nullsafety.4
+ collection: ^1.15.0
flutter:
assets: