CountryDialog
fun CountryDialog( onDismissRequest: () -> Unit, onSelect: (item: CountryData) -> Unit, textStyle: TextStyle, modifier: Modifier = Modifier, countryList: ImmutableList<CountryData> = persistentListOf(), rowPadding: Dp = DEFAULT_ROW_PADDING, backgroundColor: Color = MaterialTheme.colors.surface, dividerColor: Color = MaterialTheme.colors.onSurface.copy(alpha = DIVIDER_ALPHA))
Parameters
onDismissRequest
Executes when the user tries to dismiss the dialog.
onSelect
Executes when the user selects a country from the list.
textStyle
A TextStyle for customizing text style of search input field and country rows.
modifier
The modifier to be applied to the dialog surface.
countryList
The list of countries to display in the dialog.
rowPadding
The padding to be applied to each row.
backgroundColor
The Color of the dialog background.
dividerColor
The Color of the country row dividers.