Shrimp Country Code

A flutter package for showing a country code selector.

Usage

To use this plugin, add shrimp_country_code as a dependency in your pubspec.yaml.

Just put the component in your application setting the onChanged callback.

ShrimpCountryCode(
    modalTitle: 'Countries',
    initialCountry: 'LY',
    showFlags: false,
    searchFieldHint: 'Search by country name',
    onChanged: (CountryInfo country) {
    if (kDebugMode) {
        print(country.toJson());
        }
    },
)

Customization

NameTypeDescription
onChangeValueChangedcallback invoked when the selection changes
modalTitleStringModal title
inputDecorationInputDecorationSearch text box decoration

Support the Library

You can support the library by staring it on Github && liking it on pub or report any bugs you encounter. also, if you have a suggestion or think something can be implemented in a better way, open an issue and let's talk about it.

License

MIT

Libraries

shrimp_country_code