ExpandableSearchBar constructor

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

Implementation

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