TDSearchBar constructor

const TDSearchBar({
  1. Key? key,
  2. String? placeHolder,
  3. TDSearchStyle? style = TDSearchStyle.square,
  4. TDSearchAlignment? alignment = TDSearchAlignment.left,
  5. TDSearchBarEvent? onTextChanged,
  6. TDSearchBarEvent? onSubmitted,
  7. TDSearchBarCallBack? onEditComplete,
  8. bool autoHeight = false,
  9. EdgeInsets padding = const EdgeInsets.fromLTRB(16, 8, 16, 8),
  10. bool autoFocus = false,
  11. bool mediumStyle = false,
  12. bool needCancel = false,
  13. Color? backgroundColor = Colors.white,
})

Implementation

const TDSearchBar({
  Key? key,
  this.placeHolder,
  this.style = TDSearchStyle.square,
  this.alignment = TDSearchAlignment.left,
  this.onTextChanged,
  this.onSubmitted,
  this.onEditComplete,
  this.autoHeight = false,
  this.padding = const EdgeInsets.fromLTRB(16, 8, 16, 8),
  this.autoFocus = false,
  this.mediumStyle = false,
  this.needCancel = false,
  this.backgroundColor = Colors.white,
}) : super(key: key);