ExpandableSearchBar constructor
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),
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);