SelectPickerThemeData class

Defines the visual properties for SelectPickerNew.

Descendant widgets obtain the current SelectPickerThemeData object using SelectPickerTheme.of(context). Instances of SelectPickerThemeData can be customized with SelectPickerThemeData.copyWith.

A SelectPickerThemeData is often used to override the default styles of SelectPickerNew widgets in a subtree.

Constructors

SelectPickerThemeData({InputDecoration? decoration, Widget? arrowIcon, TextStyle? itemTextStyle, TextStyle? selectedItemTextStyle, InputDecoration? searchDecoration, Color? loadingColor, Color? menuBackgroundColor, BorderRadiusGeometry? menuBorderRadius, ButtonStyle? doneButtonStyle, TextStyle? doneButtonTextStyle})
Creates a theme data for SelectPickerNew.
const

Properties

arrowIcon Widget?
The icon to display at the end of the input field.
final
decoration InputDecoration?
The decoration to apply to the main input field.
final
doneButtonStyle ButtonStyle?
The style for the 'Done' button in multi-selection mode.
final
doneButtonTextStyle TextStyle?
The text style for the 'Done' button text in multi-selection mode.
final
hashCode int
The hash code for this object.
no setteroverride
itemTextStyle TextStyle?
The text style for items in the dropdown list.
final
loadingColor Color?
The color of the loading indicator.
final
The background color of the menu (bottom sheet).
final
The border radius of the menu (bottom sheet).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchDecoration InputDecoration?
The decoration for the search field in the dropdown.
final
selectedItemTextStyle TextStyle?
The text style for the selected item in the dropdown list.
final

Methods

copyWith({InputDecoration? decoration, Widget? arrowIcon, TextStyle? itemTextStyle, TextStyle? selectedItemTextStyle, InputDecoration? searchDecoration, Color? loadingColor, Color? menuBackgroundColor, BorderRadiusGeometry? menuBorderRadius, ButtonStyle? doneButtonStyle, TextStyle? doneButtonTextStyle}) SelectPickerThemeData
Creates a copy of this theme but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override