Closed jingwei99 closed 2 months ago
Hey @jingwei99 thanks for raising this, I will add capabilities to change the container colour of the picker dialog today
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:
val state = rememberKomposeCountryCodePickerState()
KomposeCountryCodePicker
composableThen as for accessing utility methods:
CountryCodePicker.getCountryPhoneCodeWithoutPrefix()
etcstate
i.e state.getCountryPhoneCodeWithoutPrefix()
Then as for your request to add capabilities to change the background color of the picker dialog, we have two new parameters in KomposeCountryCodePicker
:
countrySelectionDialogContainerColor
- Sets color of the country selection dialog containercountrySelectionDialogContentColor
- Sets color of the country selection dialog contentKindly test it and let me know if anything does not work. You can also refer from the update README.md
Thanks
Yep, works perfectly, thanks Joel!
Great 🎉
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 toKomposeCountryCodePicker
.Let me know.
Thanks!