CountryPickerStyle

data class CountryPickerStyle(val colors: CountryPickerColors, val shapes: CountryPickerShapes, val dimensions: CountryPickerDimensions, val typography: CountryPickerTypography, val motion: CountryPickerMotion, val elevation: CountryPickerElevation, val layout: CountryPickerLayout, val haptics: CountryPickerHaptics)(source)

Everything about how the country picker looks and feels, in one value.

Set it once for a whole screen or app with CountryPickerTheme, or pass it to a single component's style parameter. Start from a preset in CountryPickerStyles and refine it with copy:

val brand = CountryPickerStyles.signature(accent = Color(0xFF0F766E))
CountryPickerTheme(
style = brand.copy(layout = brand.layout.copy(flagStyle = CountryFlagStyle.Circle)),
) {
CountrySelector(selectedCountry = country, onCountrySelected = { country = it })
}

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

Color roles.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Haptic feedback.

Link copied to clipboard

Structural choices: presentation, list style, flags, quick picks.

Link copied to clipboard

Animation specs.

Link copied to clipboard

Corner shapes.

Link copied to clipboard

Functions

Link copied to clipboard

This style with its dimensions replaced by those of density.