SearchBarAnimation constructor
const
SearchBarAnimation({
- required TextEditingController textEditingController,
- required bool isOriginalAnimation,
- Key? key,
- double? searchBoxWidth,
- IconData? trailingIcon = Icons.search,
- IconData? secondaryButtonIcon = Icons.close,
- IconData? buttonIcon = Icons.search,
- String hintText = "Search Here",
- Color? searchBoxColour = AppColours.white,
- Color? buttonColour = AppColours.white,
- Color? cursorColour = AppColours.black,
- Color? buttonIconColour = AppColours.black,
- Color? secondaryButtonIconColour = AppColours.black,
- Color? trailingIconColour = AppColours.black,
- Color? hintTextColour = AppColours.grey,
- Color? searchBoxBorderColour = AppColours.black12,
- Color? buttonShadowColour = AppColours.black45,
- Color? buttonBorderColour = AppColours.black26,
- int durationInMilliSeconds = Dimensions.t1000,
- TextInputType textInputType = TextInputType.text,
- bool isSearchBoxOnRightSide = false,
- bool enableKeyboardFocus = false,
- bool enableBoxBorder = false,
- bool enableButtonBorder = false,
- bool enableButtonShadow = true,
- bool enableBoxShadow = true,
- bool textAlignToRight = false,
- Function? onSaved,
- Function? onChanged,
- Function? onFieldSubmitted,
- Function? onExpansionComplete,
- Function? onCollapseComplete,
- dynamic onPressButton(
- bool isOpen
- Function? onEditingComplete,
- TextStyle? enteredTextStyle,
- double buttonElevation = Dimensions.d0,
- List<
TextInputFormatter> ? inputFormatters,
Implementation
const SearchBarAnimation(
{required this.textEditingController,
required this.isOriginalAnimation,
Key? key,
this.searchBoxWidth,
this.trailingIcon = Icons.search,
this.secondaryButtonIcon = Icons.close,
this.buttonIcon = Icons.search,
this.hintText = "Search Here",
this.searchBoxColour = AppColours.white,
this.buttonColour = AppColours.white,
this.cursorColour = AppColours.black,
this.buttonIconColour = AppColours.black,
this.secondaryButtonIconColour = AppColours.black,
this.trailingIconColour = AppColours.black,
this.hintTextColour = AppColours.grey,
this.searchBoxBorderColour = AppColours.black12,
this.buttonShadowColour = AppColours.black45,
this.buttonBorderColour = AppColours.black26,
this.durationInMilliSeconds = Dimensions.t1000,
this.textInputType = TextInputType.text,
this.isSearchBoxOnRightSide = false,
this.enableKeyboardFocus = false,
this.enableBoxBorder = false,
this.enableButtonBorder = false,
this.enableButtonShadow = true,
this.enableBoxShadow = true,
this.textAlignToRight = false,
this.onSaved,
this.onChanged,
this.onFieldSubmitted,
this.onExpansionComplete,
this.onCollapseComplete,
this.onPressButton,
this.onEditingComplete,
this.enteredTextStyle,
this.buttonElevation = Dimensions.d0,
this.inputFormatters})
: super(key: key);