SelectedCountryComponent
fun SelectedCountryComponent(selectedCountry: Country, selectedCountryFlagSize: FlagSize, textStyle: TextStyle, onClickSelectedCountry: () -> Unit, dropDownIcon: @Composable () -> Unit, modifier: Modifier = Modifier, selectedCountryPadding: Dp = 8.dp, showCountryCode: Boolean = true, showFlag: Boolean = true, showCountryName: Boolean = false, containerColor: Color = Color.Unspecified)
SelectedCountryComponent is a composable that displays the
Parameters
selectedCountry
] The selected country.
selectedCountryFlagSize
] The size of the selected country flag.
textStyle
The style to be used to display the text.
onClickSelectedCountry
Called when the selected country is clicked.
modifier
Modifier to be applied to the layout.
selectedCountryPadding
The padding to be applied to the selected country.
showCountryCode
If true, the country code will be shown.
showFlag
] If true, the country flag will be shown.
showCountryName
If true, the country name will be shown.
dropDownIcon
A composable lambda to display the dropdown icon.
containerColor
The background color of the country selector area. When Color.Unspecified, no background is drawn.