ExpandableSearchBar class

Inheritance

Constructors

ExpandableSearchBar({Key? key, required void onTap()?, required String? hintText, required TextEditingController? editTextController, double? width = 200, double? iconSize = 45, double? gutter = 20, Duration animationDuration = const Duration(milliseconds: 500), Cubic animationCurve = Curves.fastOutSlowIn, Duration textFieldAnimationDuration = const Duration(milliseconds: 200), Cubic textFieldAnimationCurve = Curves.easeInOut, List<BoxShadow>? iconBoxShadow, Color iconColor = const Color(0xff47E10C), Color iconBackgroundColor = const Color(0xff353535), List<BoxShadow>? boxShadow = const [BoxShadow(color: Colors.black38, spreadRadius: 4, blurRadius: 2, offset: Offset(0, 2))], Color backgroundColor = const Color(0xff101010)})

Properties

animationCurve Cubic
Animation curve for expandable bar.
final
animationDuration Duration
Animation duration for expandable bar.
final
backgroundColor Color
Background color for animated bar. If not set default will be:
final
boxShadow List<BoxShadow>?
Shadow for animated bar. If not set default will be :
final
editTextController TextEditingController?
Controller for textfield
getter/setter pair
gutter double?
Some extra space for expanded bar.
final
hashCode int
The hash code for this object.
no setterinherited
hintText String?
Hint text for textField inside expandable bar.
final
iconBackgroundColor Color
Button Icon color. If not set default will be:
final
iconBoxShadow List<BoxShadow>?
Shadow for icon button.
final
iconColor Color
Button Icon color. If not set default will be:
final
iconSize double?
Suffix icon width.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onTap → void Function()?
Search icon onTap function
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textFieldAnimationCurve Cubic
Animation curve for textField.
final
textFieldAnimationDuration Duration
Animation duration for textField.
final
width double?
Animated bar width.
final

Methods

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