AnimatedSearchBar class Null safety
Created by ukietux on 22/09/20 with ♥ (>’’)> email : ukie.tux@gmail.com github : https://www.github.com/ukieTux <(’’<)
© 2020 | All Right Reserved
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimatedSearchBar
Constructors
- AnimatedSearchBar({Key? key, String label = "", TextAlign alignment = TextAlign.start, dynamic onChanged(String)?, TextStyle labelStyle = const TextStyle(fontSize: 14, fontWeight: FontWeight.bold), InputDecoration searchDecoration = const InputDecoration(labelText: "Search", alignLabelWithHint: true, contentPadding: EdgeInsets.symmetric(vertical: 8, horizontal: 8), border: const OutlineInputBorder(borderRadius: BorderRadius.all(Radius.circular(8)), gapPadding: 4)), int animationDuration = 350, TextStyle searchStyle = const TextStyle(color: Colors.black), Color? cursorColor, Duration duration = const Duration(milliseconds: 300), double height = 60, Widget closeIcon = const Icon(Icons.close, key: ValueKey("close")), Widget searchIcon = const Icon(Icons.search, key: ValueKey("search")), TextEditingController? controller})
-
label - String ,isRequired : No
onChanged - Function(String) ,isRequired : No
labelStyle - TextStyle ,isRequired : No
searchDecoration - InputDecoration ,isRequired : No
animationDuration in milliseconds - int ,isRequired : No
searchStyle - TextStyle ,isRequired : No
cursorColor - Color ,isRequired : No
duration - Duration for debouncer
const
Properties
- alignment → TextAlign
-
final
- animationDuration → int
-
final
- closeIcon → Widget
-
final
- controller → TextEditingController?
-
final
- cursorColor → Color?
-
final
- duration → Duration
-
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- height → double
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String
-
final
- labelStyle → TextStyle
-
final
- onChanged → (dynamic Function(String)?)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- searchDecoration → InputDecoration
-
final
- searchIcon → Widget
-
final
- searchStyle → TextStyle
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _AnimatedSearchBarState -
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 non-existent 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