MultipleSearchSelection class
Constructors
-
MultipleSearchSelection({required List<String> items, required dynamic onPickedChange(List<String>), List<String>? initialPickedItems, FuzzySearch fuzzySearch = FuzzySearch.none, EdgeInsets? padding, dynamic onItemAdded(String)?, dynamic onItemRemoved(String)?, VoidCallback? onTapShowedItem, Widget? title, EdgeInsets? titlePadding, double maximumShowItemsHeight = 150, String? hintText, TextStyle? hintTextStyle, bool showClearAllButton = true, bool showSelectAllButton = true, bool showTooltipOnpickedItem = false, bool sortPickedItems = false, bool sortShowedItems = false, BoxDecoration? tooltipDecoration, EdgeInsets? tooltipContentPadding, TextStyle? showedItemTextStyle, String? selectAllText, Color? selectAllOnHoverTextColor, FontWeight? selectAllFontWeight, FontWeight? selectAllOnHoverFontWeight, TextStyle? selectAllTextStyle, Color? selectAllTextColor, double? selectAllBorderRadius, EdgeInsets? selectAllContentPadding, Color? selectAllHoverColor, Duration? selectAllAnimationDuration, Color? selectAllBackgroundColor, Color? selectAllBorderColor, double? selectAllFontSize, Color? selectAllOnHoverBackgroundColor, Color? selectAllOnHoverBorderColor, Curve? selectAllAnimationCurve, String? clearAllText, TextStyle? clearAllTextStyle, double? clearAllBorderRadius, EdgeInsets? clearAllContentPadding, Duration? clearAllAnimationDuration, Color? clearAllBackgroundColor, Color? clearAllBorderColor, double? clearAllFontSize, FontWeight? clearAllFontWeight, Color? clearAllOnHoverColor, Color? clearAllOnHoverBackgroundColor, Color? clearAllOnHoverBorderColor, FontWeight? clearAllOnHoverFontWeight, Color? clearAllTextColor, Color? clearAllOnHoverTextColor, Curve? clearAllAnimationCurve, TextStyle? pickedItemTextStyle, double? pickedItemSpacing, Color? pickedItemBackgroundColor, double? pickedItemBorderRadius, BoxDecoration? pickedItemBoxDecoration, Color? pickedItemOnHoverBackgroundColor, double? pickedItemFontSIze, Color? pickedItemOnHoverTextColor, Color? pickedItemRemoveIconColor, double? pickedItemRemoveIconSize, Color? pickedItemTextColor, TextStyle? pickedItemTooltipTextStyle, EdgeInsets? pickedItemContentPadding, Color? pickedItemOnHoveredRemoveIconColor, Color? pickedItemScrollbarColor, double? pickedItemScrollbarMinOverscrollLength, Radius? pickedItemScrollbarRadius, double? pickedItemScrollbarThickness, double? pickedItemScrollbarMinThumbLength, BoxDecoration? pickedItemsBoxDecoration, FontWeight? pickedItemFontWeight, FontWeight? pickedItemOnHoverFontWeight, double? pickedItemsContainerMaxHeight, double? pickedItemsContainerMinHeight, Color? pickedItemsBorderColor, Widget? pickedItemRemoveIcon, ScrollController? pickedItemsScrollController, ScrollPhysics? pickedItemsScrollPhysics, MouseCursor? pickedItemMouseCursor, bool showShowedItemsScrollbar = true, bool showPickedItemScrollbar = true, Color? showedItemsScrollbarColor, double? showedItemsScrollbarMinOverscrollLength, double? showedItemsScrollbarMinThumbLength, Radius? showedItemsScrollbarRadius, double? showedItemsScrollbarThickness, EdgeInsets? showedItemContainerContentPadding, BoxDecoration? showedItemContainerDecoration, double? showedItemContainerHeight, EdgeInsets? showedItemContainerPadding, Color? showedItemsBackgroundColor, MouseCursor? showedItemMouseCursor, ScrollController? showedItemsScrollController, ScrollPhysics? showedItemsScrollPhysics, BoxDecoration? showedItemsBoxDecoration, InputDecoration? searchItemTextInputDecoration, TextStyle? searchItemTextStyle, EdgeInsets? searchItemTextContentPadding, Widget? noResultsWidget, Color? outerContainerBorderColor, Curve? showItemsAnimationCurve, Duration? showItemsAnimationDuration, Color? showItemsBackgroundColor, Color? showItemsBorderColor, double? showItemsBorderRadius, EdgeInsets? showItemsContentPadding, double? showItemsFontSize, FontWeight? showItemsFontWeight, Color? showItemsOnHoverBackgroundColor, Color? showItemsOnHoverBorderColor, Color? showItemsOnHoverColor, FontWeight? showItemsOnHoverFontWeight, Color? showItemsOnHoverTextColor, String? showItemsText, Color? showItemsTextColor, TextStyle? showItemsTextStyle, ShowedItemsVisibility itemsVisibility = ShowedItemsVisibility.alwaysOn, Key? key})
-
const
Properties
-
clearAllAnimationCurve
→ Curve?
-
The animation Curve of the clear all button style. Defaults to Curves.easeInOut.
final
-
clearAllAnimationDuration
→ Duration?
-
The animation duration of color changes of the clear all button.
final
-
clearAllBackgroundColor
→ Color?
-
The background color of the clear all button on idle state.
final
-
clearAllBorderColor
→ Color?
-
The border color of the clear all button on idle state.
final
-
clearAllBorderRadius
→ double?
-
The border radius of the clear all button.
final
-
clearAllContentPadding
→ EdgeInsets?
-
The padding of the text in the clear all button.
final
-
clearAllFontSize
→ double?
-
The clear all text font size. This is overriden if clearAllTextStyle is provided.
final
-
clearAllFontWeight
→ FontWeight?
-
The font weight of the text on clear all button, on idle state. This is overriden if clearAllTextStyle is provided.
final
-
clearAllOnHoverBackgroundColor
→ Color?
-
The background color of the clear all button when hovered.
final
-
clearAllOnHoverBorderColor
→ Color?
-
The border color of the clear all button when hovered.
final
-
clearAllOnHoverColor
→ Color?
-
The color that appears when hovering over the clear all button.
final
-
clearAllOnHoverFontWeight
→ FontWeight?
-
The font weight of the text on clear all button, when hovered. This is overriden if clearAllTextStyle is provided.
final
-
clearAllOnHoverTextColor
→ Color?
-
The clear all text color when hovered. This is overriden if clearAllTextStyle is provided.
final
-
clearAllText
→ String?
-
The text that appears on clear all button.
final
-
clearAllTextColor
→ Color?
-
The clear all text color on idle state. This is overriden if clearAllTextStyle is provided.
final
-
clearAllTextStyle
→ TextStyle?
-
The text style of the clear all button.
final
-
fuzzySearch
→ FuzzySearch
-
Fuzzy search functionality. Defaults to FuzzySearch.none.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hintText
→ String?
-
The hint text of the search field. This is overriden if searchItemTextInputDecoration is provided.
final
-
hintTextStyle
→ TextStyle?
-
The hint text style of the search field. This is overriden if searchItemTextInputDecoration is provided.
final
-
initialPickedItems
→ List<String>?
-
The list of initial picked items.
final
-
items
→ List<String>
-
The list of items to search and select.
final
-
itemsVisibility
→ ShowedItemsVisibility
-
How the showed items are displayed.
final
-
key
→ Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
maximumShowItemsHeight
→ double
-
The maximum height constraints of the items' container.
final
-
noResultsWidget
→ Widget?
-
What is shown when there are no more results to select.
final
-
onItemAdded
→ (dynamic Function(String)?)
-
A callback when an item is added, returns the item aswell.
final
-
onItemRemoved
→ (dynamic Function(String)?)
-
A callback when an item is removed, returns the item aswell.
final
-
onPickedChange
→ dynamic Function(List<String>)
-
A callback when user selects or deselects an item. Always returns the currently picked items.
final
-
onTapShowedItem
→ VoidCallback?
-
A callback when a showed item is tapped.
final
-
outerContainerBorderColor
→ Color?
-
The border color of the container that includes the search text field and the showed items.
final
-
padding
→ EdgeInsets?
-
The padding of the whole widget.
final
-
pickedItemBackgroundColor
→ Color?
-
The background color of the picked item chip, on idle state.
final
-
pickedItemBorderRadius
→ double?
-
The border radius of the picked item chip. This is overriden if pickedItemBoxDecoration is provided.
final
-
pickedItemBoxDecoration
→ BoxDecoration?
-
The picked item's BoxDecoration.
final
-
pickedItemContentPadding
→ EdgeInsets?
-
The content padding of the picked items' chip.
final
-
pickedItemFontSIze
→ double?
-
The font size of the text tha appears on picked item chip. This is overriden if pickedItemTextStyle is provided.
final
-
pickedItemFontWeight
→ FontWeight?
-
The picked item's font weight, on idle state. Defaults to FontWeight.w100.
final
-
pickedItemMouseCursor
→ MouseCursor?
-
The mouse cursor when hovered over picked item.
final
-
pickedItemOnHoverBackgroundColor
→ Color?
-
The background color of the picked item chip, when hovered.
final
-
pickedItemOnHoveredRemoveIconColor
→ Color?
-
The remove icon color of the picked item chip, when hovered. This is overriden if pickedItemBoxDecoration is provided.
final
-
pickedItemOnHoverFontWeight
→ FontWeight?
-
The picked item's font weight, on hover. Defaults to FontWeight.bold.
final
-
pickedItemOnHoverTextColor
→ Color?
-
The color of the picked item text, when hovered. This is overriden if pickedItemTextStyle is provided.
final
-
pickedItemRemoveIcon
→ Widget?
-
The picked item remove icon. Defaults to Icons.close.
final
-
pickedItemRemoveIconColor
→ Color?
-
The remove icon color of the picked item chip, on idle state.
final
-
pickedItemRemoveIconSize
→ double?
-
The remove icon size of the picked item chip.
final
-
pickedItemsBorderColor
→ Color?
-
The border color of the picked items container.
final
-
pickedItemsBoxDecoration
→ BoxDecoration?
-
The BoxDecoration of the picked items container.
final
-
pickedItemsContainerMaxHeight
→ double?
-
The maximum height of which the picked items container can extend. Defaults to 150 pixels.
final
-
pickedItemsContainerMinHeight
→ double?
-
The minimum height of which the picked items container can extend. Defaults to 50 pixels.
final
-
pickedItemScrollbarColor
→ Color?
-
The thumb color of the picked items' scrollbar.
final
-
pickedItemScrollbarMinOverscrollLength
→ double?
-
The minimum length of the overscroll for picked items.
final
-
pickedItemScrollbarMinThumbLength
→ double?
-
The minimum length of the picked items' scrollbar thumb.
final
-
pickedItemScrollbarRadius
→ Radius?
-
The radius of the picked items' scrollbar.
final
-
pickedItemScrollbarThickness
→ double?
-
The thickness of the picked items' scrollbar thumb.
final
-
pickedItemSpacing
→ double?
-
The spacing of picked item chip. Defaults to 5.
final
-
pickedItemsScrollController
→ ScrollController?
-
The ScrollController of the picked items list.
final
-
pickedItemsScrollPhysics
→ ScrollPhysics?
-
The ScrollPhysics of the picked items list.
final
-
pickedItemTextColor
→ Color?
-
The color of the picked item text, on idle state. This is overriden if pickedItemTextStyle is provided.
final
-
pickedItemTextStyle
→ TextStyle?
-
The text style of the picked item chip.
final
-
pickedItemTooltipTextStyle
→ TextStyle?
-
The textstyle of picked item tooltip.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
searchItemTextContentPadding
→ EdgeInsets?
-
The content padding of the search item textfield. This is overriden if searchItemTextInputDecoration is provided.
final
-
searchItemTextInputDecoration
→ InputDecoration?
-
The input decoration of the search text field.
final
-
searchItemTextStyle
→ TextStyle?
-
The text style of the search text field.
final
-
selectAllAnimationCurve
→ Curve?
-
The animation Curve of the select all button style. Defaults to Curves.easeInOut.
final
-
selectAllAnimationDuration
→ Duration?
-
The animation duration of color changes of the select all button.
final
-
selectAllBackgroundColor
→ Color?
-
The background color of the select all button on idle state.
final
-
selectAllBorderColor
→ Color?
-
The border color of the select all button on idle state.
final
-
selectAllBorderRadius
→ double?
-
The border radius of the select all button.
final
-
selectAllContentPadding
→ EdgeInsets?
-
The padding of the text in the select all button.
final
-
selectAllFontSize
→ double?
-
The select all text font size. This is overriden if selectAllTextStyle is provided.
final
-
selectAllFontWeight
→ FontWeight?
-
The font weight of the text on select all button, on idle state. This is overriden if selectAllTextStyle is provided.
final
-
selectAllHoverColor
→ Color?
-
The color that appears when hovering of the select all button.
final
-
selectAllOnHoverBackgroundColor
→ Color?
-
The background color of the select all button when hovered.
final
-
selectAllOnHoverBorderColor
→ Color?
-
The border color of the select all button when hovered.
final
-
selectAllOnHoverFontWeight
→ FontWeight?
-
The font weight of the text on select all button, when hovered. This is overriden if selectAllTextStyle is provided.
final
-
selectAllOnHoverTextColor
→ Color?
-
The select all text color when hovered. This is overriden if selectAllTextStyle is provided.
final
-
selectAllText
→ String?
-
The text that appears on select all button.
final
-
selectAllTextColor
→ Color?
-
The select all text color on idle state. This is overriden if selectAllTextStyle is provided.
final
-
selectAllTextStyle
→ TextStyle?
-
The text style of the select all button.
final
-
showClearAllButton
→ bool
-
Hide or show clear all button.
final
-
showedItemContainerContentPadding
→ EdgeInsets?
-
The content padding of the showed item container. Defaults to EdgeInsets.only(left: 8.0)
final
-
showedItemContainerDecoration
→ BoxDecoration?
-
The decoration of the showed item container.
final
-
showedItemContainerHeight
→ double?
-
The height of the showed item container. Defaults to 50 pixels.
final
-
showedItemContainerPadding
→ EdgeInsets?
-
The padding of the showed item container.
final
-
showedItemMouseCursor
→ MouseCursor?
-
The mouse cursor when hovered over showed item container. Defaults to SystemMouseCursors.click
final
-
showedItemsBackgroundColor
→ Color?
-
The background color of the container holding all the items.
final
-
showedItemsBoxDecoration
→ BoxDecoration?
-
The BoxDecoration of the showed items container.
final
-
showedItemsScrollbarColor
→ Color?
-
The thumb color of the items' scrollbar.
final
-
showedItemsScrollbarMinOverscrollLength
→ double?
-
The minimum length of the overscroll for items.
final
-
showedItemsScrollbarMinThumbLength
→ double?
-
The minimum length of the items' scrollbar thumb.
final
-
showedItemsScrollbarRadius
→ Radius?
-
The radius of the items' scrollbar.
final
-
showedItemsScrollbarThickness
→ double?
-
The thickness of the items' scrollbar thumb.
final
-
showedItemsScrollController
→ ScrollController?
-
The ScrollController of showed items list.
final
-
showedItemsScrollPhysics
→ ScrollPhysics?
-
The ScrollPhysics of showed items list.
final
-
showedItemTextStyle
→ TextStyle?
-
TextStyle of the showed items.
final
-
showItemsAnimationCurve
→ Curve?
-
The animation Curve of the show items toggle button.
final
-
showItemsAnimationDuration
→ Duration?
-
The animation duration of color changes of the show items toggle button.
final
-
showItemsBackgroundColor
→ Color?
-
The background color of the show items toggle button on idle state.
final
-
showItemsBorderColor
→ Color?
-
The border color of the show items toggle button on idle state.
final
-
showItemsBorderRadius
→ double?
-
The border radius of the show items toggle button.
final
-
showItemsContentPadding
→ EdgeInsets?
-
The padding of the text in the show items toggle button.
final
-
showItemsFontSize
→ double?
-
The show items toggle button font size. This is overriden if showItemsTextStyle is provided.
final
-
showItemsFontWeight
→ FontWeight?
-
The font weight of the show items toggle button, on idle state. This is overriden if showItemsTextStyle is provided.
final
-
showItemsOnHoverBackgroundColor
→ Color?
-
The background color of the show items toggle button when hovered.
final
-
showItemsOnHoverBorderColor
→ Color?
-
The border color of the show items toggle button when hovered.
final
-
showItemsOnHoverColor
→ Color?
-
The color that appears when hovering over the show items toggle button.
final
-
showItemsOnHoverFontWeight
→ FontWeight?
-
The font weight of the show items toggle button, when hovered. This is overriden if showItemsTextStyle is provided.
final
-
showItemsOnHoverTextColor
→ Color?
-
The show items toggle button text color when hovered. This is overriden if showItemsTextStyle is provided.
final
-
showItemsText
→ String?
-
The text that appears on show items toggle button.
final
-
showItemsTextColor
→ Color?
-
The show items toggle button text color on idle state. This is overriden if showItemsTextStyle is provided.
final
-
showItemsTextStyle
→ TextStyle?
-
The text style of the show items toggle button.
final
-
showPickedItemScrollbar
→ bool
-
Hide or show picked items' scrollbar, defaults to
true
.
final
-
showSelectAllButton
→ bool
-
Hide or show select all button.
final
-
showShowedItemsScrollbar
→ bool
-
Hide or show items' scrollbar, defaults to
true
final
-
showTooltipOnpickedItem
→ bool
-
Hide or show tooltip when hovering picked item chip.
final
-
sortPickedItems
→ bool
-
Whether the picked items are sorted alphabetically. Defaults to
false
.
final
-
sortShowedItems
→ bool
-
Whether the showed items are sorted alphabetically. Defaults to
false
.
final
-
title
→ Widget?
-
The title widget on top of picked items.
final
-
titlePadding
→ EdgeInsets?
-
The padding of the title Widget. Defaults to EdgeInsets.zero.
final
-
tooltipContentPadding
→ EdgeInsets?
-
The content padding of the picked item tooltip.
final
-
tooltipDecoration
→ BoxDecoration?
-
The BoxDecoration of the picked item tooltip.
final