SuperSearchBar class

Constructors

SuperSearchBar({Color? resultColor, Color backgroundColor = CupertinoColors.tertiarySystemFill, String cancelButtonText = "Cancel", String placeholderText = "Search", bool enabled = true, SearchBarScrollBehavior scrollBehavior = SearchBarScrollBehavior.floated, SearchBarAnimationBehavior animationBehavior = SearchBarAnimationBehavior.top, SearchBarResultBehavior resultBehavior = SearchBarResultBehavior.visibleOnFocus, Duration animationDuration = const Duration(milliseconds: 250), TextStyle placeholderTextStyle = const TextStyle(color: CupertinoColors.systemGrey), TextStyle cancelTextStyle = const TextStyle(color: CupertinoColors.systemBlue), Icon prefixIcon = const Icon(CupertinoIcons.search), List<SuperAction> actions = const <SuperAction>[], double height = 40, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 15.0), Widget searchResult = const Text(".", style: TextStyle(color: Colors.transparent)), TextStyle textStyle = const TextStyle(), ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, ValueChanged<bool>? onFocused, TextEditingController? searchController, FocusNode? searchFocusNode})

Properties

actions List<SuperAction>
final
animationBehavior SearchBarAnimationBehavior
final
animationDuration Duration
final
backgroundColor Color
final
cancelButtonText String
final
cancelTextStyle TextStyle
final
enabled bool
final
hashCode int
The hash code for this object.
no setterinherited
height double
Defines the height of the toolbar component of an AppBar.
getter/setter pair
onChanged ValueChanged<String>?
final
onFocused ValueChanged<bool>?
final
onSubmitted ValueChanged<String>?
final
padding EdgeInsets
final
placeholderText String
final
placeholderTextStyle TextStyle
final
prefixIcon Icon
final
resultBehavior SearchBarResultBehavior
final
resultColor Color?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollBehavior SearchBarScrollBehavior
final
searchController TextEditingController?
getter/setter pair
searchFocusNode FocusNode?
getter/setter pair
searchResult Widget
final
textStyle TextStyle
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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