Skip to content

gocityengineering/compose-country-picker

Repository files navigation

Jetpack Compose Country Code Picker Maven Central

Platform Kotlin Compose

A very simple Country Code Picker

The library uses emojis and the standard Java country translations so you get a rich looking UI without needing any translations. The only resource string it uses is the word "Country", so if you want to display something else or some of your languages aren't supported simply add the missing translations or create your own label.

Screenshots

Country picker English Country picker Arabic

Download

Country Code Picker is available on mavenCentral().

Toml configuration

[versions]
countrypicker = '1.0.0'

[libraries]
countrypicker = { group = "com.gocity.countrypicker", name = "countrypicker", version.ref = "countrypicker" }
implementation("libs.countrypicker")

Just gradle

implementation("com.gocity.countrypicker:countrypicker:1.0.0")

Usage

See MainActivity in the sample app for an example.

var country: Country? by rememberSaveable { mutableStateOf<Country?>(null) }
CountryPicker(currentCountry = country) {
    country = it
}

About

A lightweight, localised Country Picker for Jetpack Compose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages