TDSearchBar constructor
const
TDSearchBar({
- Key? key,
- String? placeHolder,
- TDSearchStyle? style = TDSearchStyle.square,
- TDSearchAlignment? alignment = TDSearchAlignment.left,
- TDSearchBarEvent? onTextChanged,
- TDSearchBarEvent? onSubmitted,
- TDSearchBarCallBack? onEditComplete,
- bool autoHeight = false,
- EdgeInsets padding = const EdgeInsets.fromLTRB(16, 8, 16, 8),
- bool autoFocus = false,
- bool mediumStyle = false,
- bool needCancel = false,
- 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);