Country Quick Picks
fun CountryQuickPicks(picks: List<CountryQuickPick>, selectedCountries: Set<Country>, onPick: (Country) -> Unit, modifier: Modifier = Modifier, contentPadding: PaddingValues = PaddingValues(horizontal = CountryPickerTheme.style.dimensions.groupHorizontalMargin), style: CountryPickerStyle = CountryPickerTheme.style, flagContent: @Composable (Country) -> Unit? = null)(source)
A horizontally scrolling row of one-tap shortcuts: the detected country, recent choices and the host's suggestions, as tiles above the full list.
Each tile shows the flag, ISO code and dial code — enough to recognise a country at a glance without reading its name. The detected country carries a location marker, and selected countries a check. Tiles behave like the list's rows for accessibility: one target each, announced with their name, dial code and selection state.
Parameters
picks
The shortcuts, in order — see com.ezzy.ccp.countrypicker.state.CountryPickerState.quickPicks.
selected Countries
Countries to mark as selected.
on Pick
Invoked with the tapped country.