fix search with localization and move elemen localization

This commit is contained in:
Salvatore Giordano
2020-04-04 14:13:04 +02:00
parent 16f09e5ecf
commit 1e9495cf24
4 changed files with 11 additions and 21 deletions

View File

@@ -22,7 +22,7 @@ class _MyAppState extends State<MyApp> {
supportedLocales: [
Locale('en'),
Locale('it'),
Locale('en'),
Locale('fr'),
],
localizationsDelegates: [
CountryLocalizations.delegate,
@@ -72,7 +72,7 @@ class _MyAppState extends State<MyApp> {
child: Padding(
padding: const EdgeInsets.all(8.0),
child: CountryCodePicker(
onChanged: print,
onChanged: (e) => print(e.toLongString()),
initialSelection: 'TF',
showCountryOnly: true,
showOnlyCountryWhenClosed: true,