VooSearchBar class

A search bar with navigation filtering and global search capabilities

Inheritance

Constructors

VooSearchBar({Key? key, TextEditingController? controller, FocusNode? focusNode, List<VooNavigationDestination>? navigationItems, ValueChanged<List<VooNavigationDestination>>? onFilteredItemsChanged, ValueChanged<String>? onSearch, VoidCallback? onSearchSubmit, List<VooSearchAction>? searchActions, String? hintText, bool showFilteredResults = true, bool enableKeyboardShortcut = true, String? keyboardShortcutHint, VooSearchBarStyle? style, bool expanded = false, Widget filteredItemBuilder(VooNavigationDestination, VoidCallback onTap)?, Widget actionBuilder(VooSearchAction, VoidCallback onTap)?, ValueChanged<VooNavigationDestination>? onNavigationItemSelected, ValueChanged<VooSearchAction>? onSearchActionSelected, bool showRecentSearches = false, List<String>? recentSearches, ValueChanged<String>? onRecentSearchSelected, VoidCallback? onClearRecentSearches})
const

Properties

actionBuilder Widget Function(VooSearchAction, VoidCallback onTap)?
Custom builder for search actions
final
controller TextEditingController?
Controller for the search field
final
enableKeyboardShortcut bool
Whether to enable CMD/CTRL+K shortcut
final
expanded bool
Whether the search bar is expanded
final
filteredItemBuilder Widget Function(VooNavigationDestination, VoidCallback onTap)?
Custom builder for filtered navigation items
final
focusNode FocusNode?
Focus node for the search field
final
hashCode int
The hash code for this object.
no setterinherited
hintText String?
Hint text for the search field
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardShortcutHint String?
Keyboard shortcut hint text
final
Navigation items to filter
final
onClearRecentSearches VoidCallback?
Callback to clear recent searches
final
onFilteredItemsChanged ValueChanged<List<VooNavigationDestination>>?
Callback when filtered items change
final
onNavigationItemSelected ValueChanged<VooNavigationDestination>?
Callback when a navigation item is selected
final
onRecentSearchSelected ValueChanged<String>?
Callback when a recent search is selected
final
onSearch ValueChanged<String>?
Callback when search text changes
final
onSearchActionSelected ValueChanged<VooSearchAction>?
Callback when a search action is selected
final
onSearchSubmit VoidCallback?
Callback when search is submitted
final
recentSearches List<String>?
Recent search queries
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchActions List<VooSearchAction>?
Search actions (quick commands)
final
showFilteredResults bool
Whether to show filtered results dropdown
final
showRecentSearches bool
Whether to show recent searches
final
style VooSearchBarStyle?
Style configuration
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<VooSearchBar>
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