YmSearchBar constructor

YmSearchBar({
  1. String text = "",
  2. String hint = "搜索",
  3. double borderRadius = 30.0,
  4. EdgeInsets margin = const EdgeInsets.only(top: 10.0, bottom: 10.0),
  5. EdgeInsets padding = const EdgeInsets.only(left: 12),
  6. Color splashColor = const Color(0xFFD6D6D6),
  7. FocusNode? focusNode,
  8. TextEditingController? controller,
  9. dynamic onSubmitted(
    1. String text
    )?,
  10. dynamic onChanged(
    1. String text
    )?,
  11. dynamic onBackCallback()?,
  12. Function? clearCallback,
  13. int inputKeyWordsLength = 20,
  14. double fontSize = 14,
  15. bool isShowBackButton = false,
  16. double width = 200,
  17. double height = 60,
})

Implementation

YmSearchBar(
    {this.text = "",
    this.hint = "搜索",
    this.borderRadius = 30.0,
    this.margin = const EdgeInsets.only(top: 10.0, bottom: 10.0),
    this.padding = const EdgeInsets.only(left: 12),
    this.splashColor = const Color(0xFFD6D6D6),
    this.focusNode,
    this.controller,
    this.onSubmitted,
    this.onChanged,
    this.onBackCallback,
    this.clearCallback,
    this.inputKeyWordsLength = 20,
    this.fontSize = 14,
    this.isShowBackButton = false,
    this.width = 200,
    this.height = 60});