CustomDropdownMultiSelect class

A customizable multi-select dropdown widget with optional search functionality.

Use this widget to allow users to select multiple items from a dropdown with optional search input and visual chips for selected values.

Inheritance
Available extensions

Constructors

CustomDropdownMultiSelect({Key? key, required List<DropDownDataModel> items, required List<DropDownDataModel> selectedItems, required ValueChanged<List<DropDownDataModel>> onChanged, String hintText = "Select options", bool isSearch = false, Color? borderColor, double? textSize, Color? dropdownIconColor, Color? textColor, Color? hintTextColor, Color? buttonBackgroundColor, Color? dropdownTextColor, Color? dropdownBackgroundColor, Color? selectedDataColor, Color? selectedDataBgColor, double? radius, double? menuRadius, EdgeInsetsGeometry? buttonPadding, EdgeInsetsGeometry? menuPadding, Widget separatorBuilder(BuildContext, int)?, Color? searchTextColor, Color? searchBackgroundColor, Color? searchIconColor, EdgeInsetsGeometry? searchTextFieldPadding, double? searchTextFieldRadius, double? selectedFontSize, Color? checkBoxColor, Color? checkColor, double? dropdownIconSize, double? chipCancelIconSize, double? scale})
Creates a CustomDropdownMultiSelect widget.
const

Properties

borderColor Color?
Border color for the dropdown button.
final
buttonBackgroundColor Color?
Background color of the dropdown button.
final
buttonPadding EdgeInsetsGeometry?
Padding inside the dropdown button.
final
checkBoxColor Color?
Checkbox fill color.
final
checkColor Color?
Checkbox tick color.
final
chipCancelIconSize double?
Size of the close icon in chips.
final
Background color of the dropdown menu.
final
Color of the dropdown arrow icon.
final
Size of the dropdown icon.
final
Text color inside dropdown menu.
final
hashCode int
The hash code for this object.
no setterinherited
hintText String
Hint text shown when nothing is selected.
final
hintTextColor Color?
Color of the hint text.
final
isSearch bool
Whether to show the search box.
final
items List<DropDownDataModel>
The list of all available items.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
Padding inside the dropdown menu.
final
Border radius of the dropdown menu.
final
onChanged ValueChanged<List<DropDownDataModel>>
Callback when selected items change.
final
radius double?
Border radius of the dropdown button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
Scale for checkbox size.
final
searchBackgroundColor Color?
Background color of the search field.
final
searchIconColor Color?
Color of the search icon.
final
searchTextColor Color?
Color of the text inside the search field.
final
searchTextFieldPadding EdgeInsetsGeometry?
Padding inside the search field.
final
searchTextFieldRadius double?
Border radius of the search field.
final
selectedDataBgColor Color?
Background color of selected options inside dropdown.
final
selectedDataColor Color?
Text color of selected options inside dropdown.
final
selectedFontSize double?
Font size for selected chips.
final
selectedItems List<DropDownDataModel>
The list of currently selected items.
final
separatorBuilder Widget Function(BuildContext, int)?
Custom separator builder between dropdown list items.
final
textColor Color?
Text color of selected items.
final
textSize double?
Font size for dropdown text.
final

Methods

animateOnActionTrigger(AnimationInfo animationInfo, {List<Effect>? effects, bool hasBeenTriggered = false}) Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

animateOnPageLoad(AnimationInfo animationInfo, {List<Effect>? effects}) Widget

Available on Widget, provided by the AnimatedWidgetExtension extension

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CustomDropdownMultiSelect>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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