Country Dialog
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
on Dismiss Request
Executes when the user tries to dismiss the dialog.
on Select
Executes when the user selects a country from the list.
text Style
A TextStyle for customizing text style of search input field and country rows.
modifier
The modifier to be applied to the dialog surface.
country List
The list of countries to display in the dialog.
row Padding
The padding to be applied to each row.
background Color
The Color of the dialog background.
divider Color
The Color of the country row dividers.