Commit a050198b by Rizal Hermawan

add new parameters

parent b0bd7f6a
......@@ -40,7 +40,7 @@ class AnimSearchBar extends StatefulWidget {
final bool boxShadow;
final Function(String) onSubmitted;
final TextStyle? helpTextStyle;
final double helpTextContentPadding;
final EdgeInsetsGeometry helpTextContentPadding;
const AnimSearchBar({
Key? key,
......@@ -95,7 +95,7 @@ class AnimSearchBar extends StatefulWidget {
fontSize: 17.0,
fontWeight: FontWeight.w500,
),
this.helpTextContentPadding = 5.0,
this.helpTextContentPadding = const EdgeInsets.only(bottom: 5.0),
}) : super(key: key);
@override
......@@ -282,7 +282,7 @@ class _AnimSearchBarState extends State<AnimSearchBar>
: TextStyle(color: Colors.black),
cursorColor: Colors.black,
decoration: InputDecoration(
contentPadding: EdgeInsets.only(bottom: widget.helpTextContentPadding),
contentPadding: widget.helpTextContentPadding,
isDense: true,
floatingLabelBehavior: FloatingLabelBehavior.never,
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