Skip to content

fathialamre/shrimp_country_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Name Type Description
onChange ValueChanged callback invoked when the selection changes
modalTitle String Modal title
inputDecoration InputDecoration Search 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages