CountrySelectionDialog
fun CountrySelectionDialog(countryList: List<Country>, containerColor: Color, contentColor: Color, onDismissRequest: () -> Unit, onSelect: (item: Country) -> Unit, modifier: Modifier = Modifier, properties: DialogProperties = DialogProperties().let {
DialogProperties(
dismissOnBackPress = it.dismissOnBackPress,
dismissOnClickOutside = it.dismissOnClickOutside,
securePolicy = it.securePolicy,
usePlatformDefaultWidth = false,
)
})
Parameters
countryList
The list of countries to be displayed in the dialog.
containerColor
The color of the dialog container.
contentColor
The color of the dialog content.
onDismissRequest
Called when the dialog is dismissed.
onSelect
Called when a country is selected.
modifier
Modifier to be applied to the layout.
properties
The properties of the dialog.