GeoPickerTheme constructor
const
GeoPickerTheme({
- Color? backgroundColor,
- Color? headerColor,
- TextStyle? headerTextStyle,
- Color? headerIconColor,
- Color? searchBarColor,
- TextStyle? searchTextStyle,
- TextStyle? searchHintStyle,
- Color? searchIconColor,
- Color? searchBarBorderColor,
- BorderRadius? searchBarBorderRadius,
- Color? searchCursorColor,
- Color? searchFocusedBorderColor,
- EdgeInsetsGeometry? searchContentPadding,
- InputDecoration? searchInputDecoration,
- Color? itemBackgroundColor,
- Color? itemSelectedColor,
- Color? itemSelectedBorderColor,
- Color? itemSelectedIconColor,
- BorderRadius? itemBorderRadius,
- EdgeInsetsGeometry? itemContentPadding,
- TextStyle? itemNameTextStyle,
- TextStyle? itemSelectedNameTextStyle,
- TextStyle? itemSubtitleTextStyle,
- TextStyle? dialogOptionTextStyle,
- Color? borderColor,
- BorderRadius? borderRadius,
- double? scrollbarThickness,
- Radius? scrollbarRadius,
- Color? shadowColor,
- double? elevation,
- IconData? closeIcon,
- IconData? searchIcon,
- IconData? clearIcon,
- IconData? selectedIcon,
- Widget? selectedIconWidget,
- double? selectedIconSize,
- IconData? emptyStateIcon,
- TextStyle? emptyStateTextStyle,
Comprehensive theme configuration shared by StatePicker and
CityPicker.
Every visual aspect (colors, borders, radii, typography, icons) can be overridden. Omitted fields fall back to sensible defaults pulled from the ambient ThemeData.
StatePicker(
countryIso2: 'US',
theme: GeoPickerTheme(
backgroundColor: Colors.white,
headerTextStyle: TextStyle(fontWeight: FontWeight.w700),
itemSelectedColor: Colors.blue.shade50,
),
)
Implementation
const GeoPickerTheme({
this.backgroundColor,
this.headerColor,
this.headerTextStyle,
this.headerIconColor,
this.searchBarColor,
this.searchTextStyle,
this.searchHintStyle,
this.searchIconColor,
this.searchBarBorderColor,
this.searchBarBorderRadius,
this.searchCursorColor,
this.searchFocusedBorderColor,
this.searchContentPadding,
this.searchInputDecoration,
this.itemBackgroundColor,
this.itemSelectedColor,
this.itemSelectedBorderColor,
this.itemSelectedIconColor,
this.itemBorderRadius,
this.itemContentPadding,
this.itemNameTextStyle,
this.itemSelectedNameTextStyle,
this.itemSubtitleTextStyle,
this.dialogOptionTextStyle,
this.borderColor,
this.borderRadius,
this.scrollbarThickness,
this.scrollbarRadius,
this.shadowColor,
this.elevation,
this.closeIcon,
this.searchIcon,
this.clearIcon,
this.selectedIcon,
this.selectedIconWidget,
this.selectedIconSize,
this.emptyStateIcon,
this.emptyStateTextStyle,
});