Commit 75b7ed2 1 parent df3a8e3 commit 75b7ed2 Copy full SHA for 75b7ed2
File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class AnimSearchBar extends StatefulWidget {
22
22
/// textFieldIconColor - Color ,isRequired : No
23
23
24
24
final double width;
25
+ final double height;
25
26
final TextEditingController textController;
26
27
final Icon ? suffixIcon;
27
28
final Icon ? prefixIcon;
@@ -51,7 +52,10 @@ class AnimSearchBar extends StatefulWidget {
51
52
this .suffixIcon,
52
53
this .prefixIcon,
53
54
this .helpText = "Search..." ,
54
-
55
+
56
+ /// Height of wrapper container
57
+ this .height = 100 ,
58
+
55
59
/// choose your custom color
56
60
this .color = Colors .white,
57
61
@@ -70,7 +74,7 @@ class AnimSearchBar extends StatefulWidget {
70
74
71
75
/// The onSubmitted cannot be null
72
76
required this .onSubmitted,
73
-
77
+
74
78
/// make the search bar to open from right to left
75
79
this .rtl = false ,
76
80
@@ -130,7 +134,7 @@ class _AnimSearchBarState extends State<AnimSearchBar>
130
134
@override
131
135
Widget build (BuildContext context) {
132
136
return Container (
133
- height: 100.0 ,
137
+ height: height ,
134
138
135
139
///if the rtl is true, search bar will be from right to left
136
140
alignment: widget.rtl ? Alignment .centerRight : Alignment (- 1.0 , 0.0 ),
You can’t perform that action at this time.
0 commit comments