GFSearchBar<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- GFSearchBar
- Available extensions
Constructors
-
GFSearchBar({required List<
T> searchList, required QueryListItemBuilder<T> overlaySearchListItemBuilder, required QueryBuilder<T> searchQueryBuilder, Key? key, Color? textColor, Color? circularProgressIndicatorColor, TextEditingController? controller, OnItemSelected<T> ? onItemSelected, bool hideSearchBoxWhenItemSelected = false, double? overlaySearchListHeight, Widget? noItemsFoundWidget, InputDecoration? searchBoxInputDecoration}) -
search bar with various customization option
const
Properties
- circularProgressIndicatorColor → Color?
-
defines Colors of CircularProgressIndicator in the searchBar
final
- controller → TextEditingController?
-
defines the input controller of searchBox
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideSearchBoxWhenItemSelected → bool
-
if true, it will hide the searchBox
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- noItemsFoundWidget → Widget?
-
displays the Widget when the search item failed
final
-
onItemSelected
→ OnItemSelected<
T> ? -
defines what to do with onSelect SearchList item
final
- overlaySearchListHeight → double?
-
defines the height of searchList overlay container
final
-
overlaySearchListItemBuilder
→ QueryListItemBuilder<
T> -
defines how the searchList items look like in overlayContainer
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchBoxInputDecoration → InputDecoration?
-
defines the input decoration of searchBox
final
-
searchList
→ List<
T> -
List of text or Widget reference for users
final
-
searchQueryBuilder
→ QueryBuilder<
T> -
can search and filter the query with synchronous and asynchronous function searchList
final
- textColor → Color?
-
defines Colors of Text in the searchBar
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → MySingleChoiceSearchState< T> -
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}) → 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