joelkanyi / kompose-country-code-picker

Kompose Country Code Picker is a Jetpack Compose library based on Material 3 (M3) that provides a country code picker for Android apps.
https://joelkanyi.github.io/kompose-country-code-picker/
Apache License 2.0
114 stars 13 forks source link

Set background color for CountrySelectionDialog #41

Closed jingwei99 closed 2 months ago

jingwei99 commented 2 months ago

Hey, I plan to use the library in my project and I'd like to be able to set the background color for CountrySelectionDialog.

A proposal I have is to add a countrySelectionDialogModifier as a parameter to KomposeCountryCodePicker.

Let me know.

Thanks!

joelkanyi commented 2 months ago

Hey @jingwei99 thanks for raising this, I will add capabilities to change the container colour of the picker dialog today

joelkanyi commented 2 months ago

Hey @jingwei99 a new version of the library has been published: 1.1.0

But there are some API changes:

First you need to define this state:

Then as for accessing utility methods:

Then as for your request to add capabilities to change the background color of the picker dialog, we have two new parameters in KomposeCountryCodePicker:

Kindly test it and let me know if anything does not work. You can also refer from the update README.md

Thanks

jingwei99 commented 2 months ago

Yep, works perfectly, thanks Joel!

joelkanyi commented 2 months ago

Great 🎉