diff --git a/example/ios/Flutter/flutter_export_environment.sh b/example/ios/Flutter/flutter_export_environment.sh new file mode 100644 index 0000000..a44c1dc --- /dev/null +++ b/example/ios/Flutter/flutter_export_environment.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# This is a generated file; do not edit or check into version control. +export "FLUTTER_ROOT=D:\Programmi\flutter" +export "FLUTTER_APPLICATION_PATH=C:\Users\Salvatore Giordano\development\CountryCodePicker\example" +export "FLUTTER_TARGET=lib\main.dart" +export "FLUTTER_BUILD_DIR=build" +export "SYMROOT=${SOURCE_ROOT}/../build\ios" +export "FLUTTER_FRAMEWORK_DIR=D:\Programmi\flutter\bin\cache\artifacts\engine\ios" +export "FLUTTER_BUILD_NAME=1.0.0" +export "FLUTTER_BUILD_NUMBER=1" diff --git a/lib/country_code_picker.dart b/lib/country_code_picker.dart index d29bb17..5e00880 100644 --- a/lib/country_code_picker.dart +++ b/lib/country_code_picker.dart @@ -32,13 +32,13 @@ class CountryCodePicker extends StatefulWidget { final bool showFlag; /// contains the country codes to load only the specified countries. - final List onlyCountries; + final List countryFilter; CountryCodePicker({ this.onChanged, this.initialSelection, this.favorite = const [], - this.onlyCountries = const [], + this.countryFilter = const [], this.textStyle, this.padding = const EdgeInsets.all(0.0), this.showCountryOnly = false, @@ -63,9 +63,9 @@ class CountryCodePicker extends StatefulWidget { )) .toList(); - if(onlyCountries.length > 0) { + if(countryFilter.length > 0) { elements = elements - .where((c) => onlyCountries.contains(c.code)) + .where((c) => countryFilter.contains(c.code)) .toList(); }