Commit a050198b by Rizal Hermawan

add new parameters

parent b0bd7f6a
...@@ -40,7 +40,7 @@ class AnimSearchBar extends StatefulWidget { ...@@ -40,7 +40,7 @@ class AnimSearchBar extends StatefulWidget {
final bool boxShadow; final bool boxShadow;
final Function(String) onSubmitted; final Function(String) onSubmitted;
final TextStyle? helpTextStyle; final TextStyle? helpTextStyle;
final double helpTextContentPadding; final EdgeInsetsGeometry helpTextContentPadding;
const AnimSearchBar({ const AnimSearchBar({
Key? key, Key? key,
...@@ -95,7 +95,7 @@ class AnimSearchBar extends StatefulWidget { ...@@ -95,7 +95,7 @@ class AnimSearchBar extends StatefulWidget {
fontSize: 17.0, fontSize: 17.0,
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
), ),
this.helpTextContentPadding = 5.0, this.helpTextContentPadding = const EdgeInsets.only(bottom: 5.0),
}) : super(key: key); }) : super(key: key);
@override @override
...@@ -282,7 +282,7 @@ class _AnimSearchBarState extends State<AnimSearchBar> ...@@ -282,7 +282,7 @@ class _AnimSearchBarState extends State<AnimSearchBar>
: TextStyle(color: Colors.black), : TextStyle(color: Colors.black),
cursorColor: Colors.black, cursorColor: Colors.black,
decoration: InputDecoration( decoration: InputDecoration(
contentPadding: EdgeInsets.only(bottom: widget.helpTextContentPadding), contentPadding: widget.helpTextContentPadding,
isDense: true, isDense: true,
floatingLabelBehavior: FloatingLabelBehavior.never, floatingLabelBehavior: FloatingLabelBehavior.never,
labelText: widget.helpText, labelText: widget.helpText,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment