Country Picker Style
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 })
}Content copied to clipboard
Constructors
Link copied to clipboard
constructor(colors: CountryPickerColors, shapes: CountryPickerShapes, dimensions: CountryPickerDimensions, typography: CountryPickerTypography, motion: CountryPickerMotion, elevation: CountryPickerElevation, layout: CountryPickerLayout, haptics: CountryPickerHaptics)
Properties
Link copied to clipboard
Color roles.
Link copied to clipboard
Sizes and spacing — see CountryPickerDimensions.forDensity.
Link copied to clipboard
Shadows.
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
Text styles.
Functions
Link copied to clipboard
This style with its dimensions replaced by those of density.