
Multiplatform library for searching and selecting country codes and ISOs. Features adaptable dialogs for various screen sizes and customizable country selectors using the Country enum.
A Compose Multiplatform library for searching and selecting country codes and ISOs.
The library can be used in multiple ways:
Using the Country enum. You can use the Country enum to access all it's entries and do whatever you want with it, like build your own selector UI or find a specific country.
// Enumerate all countries
Country.entries.forEach { country ->
}
// Access country details
val australia = Country.Australia
val isoCode: String = australia.iso
val phoneoCode: String = australia.phoneCode
val flag: DrawableResource = australia.getFlag()
Use the dialog. The library comes with an adaptive dialog, on smaller screens, a BottomSheet is displayed, while on bigger screens, a dialog is shown.
CountryCodePickerDialog(onDismiss = { }) { country ->
selectedCountry = country
}
A Compose Multiplatform library for searching and selecting country codes and ISOs.
The library can be used in multiple ways:
Using the Country enum. You can use the Country enum to access all it's entries and do whatever you want with it, like build your own selector UI or find a specific country.
// Enumerate all countries
Country.entries.forEach { country ->
}
// Access country details
val australia = Country.Australia
val isoCode: String = australia.iso
val phoneoCode: String = australia.phoneCode
val flag: DrawableResource = australia.getFlag()
Use the dialog. The library comes with an adaptive dialog, on smaller screens, a BottomSheet is displayed, while on bigger screens, a dialog is shown.
CountryCodePickerDialog(onDismiss = { }) { country ->
selectedCountry = country
}