SearchBarAnimation constructor

const SearchBarAnimation({
  1. required TextEditingController textEditingController,
  2. required bool isOriginalAnimation,
  3. Key? key,
  4. double? searchBoxWidth,
  5. IconData? trailingIcon = Icons.search,
  6. IconData? secondaryButtonIcon = Icons.close,
  7. IconData? buttonIcon = Icons.search,
  8. String hintText = "Search Here",
  9. Color? searchBoxColour = AppColours.white,
  10. Color? buttonColour = AppColours.white,
  11. Color? cursorColour = AppColours.black,
  12. Color? buttonIconColour = AppColours.black,
  13. Color? secondaryButtonIconColour = AppColours.black,
  14. Color? trailingIconColour = AppColours.black,
  15. Color? hintTextColour = AppColours.grey,
  16. Color? searchBoxBorderColour = AppColours.black12,
  17. Color? buttonShadowColour = AppColours.black45,
  18. Color? buttonBorderColour = AppColours.black26,
  19. int durationInMilliSeconds = Dimensions.t1000,
  20. TextInputType textInputType = TextInputType.text,
  21. bool isSearchBoxOnRightSide = false,
  22. bool enableKeyboardFocus = false,
  23. bool enableBoxBorder = false,
  24. bool enableButtonBorder = false,
  25. bool enableButtonShadow = true,
  26. bool enableBoxShadow = true,
  27. bool textAlignToRight = false,
  28. Function? onSaved,
  29. Function? onChanged,
  30. Function? onFieldSubmitted,
  31. Function? onExpansionComplete,
  32. Function? onCollapseComplete,
  33. dynamic onPressButton(
    1. bool isOpen
    )?,
  34. Function? onEditingComplete,
  35. TextStyle? enteredTextStyle,
  36. double buttonElevation = Dimensions.d0,
  37. 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);