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
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CustomDropdownMultiSelect
- Available extensions
Constructors
-
CustomDropdownMultiSelect({Key? key, required List<
DropDownDataModel> items, required List<DropDownDataModel> selectedItems, required ValueChanged<List< 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, EdgeInsetsGeometry? buttonPadding, 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})DropDownDataModel> > -
Creates a CustomDropdownMultiSelect widget.
const
Properties
- borderColor → Color?
-
Border color for the dropdown button.
final
-
Background color of the dropdown button.
final
-
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
- dropdownBackgroundColor → Color?
-
Background color of the dropdown menu.
final
- dropdownIconColor → Color?
-
Color of the dropdown arrow icon.
final
- dropdownIconSize → double?
-
Size of the dropdown icon.
final
- dropdownTextColor → Color?
-
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