SimpleSearchBar constructor
const
SimpleSearchBar({
- Key? key,
- Widget? leading,
- bool? topLeading,
- EdgeInsetsGeometry? padding,
- Widget? title,
- Decoration? textFieldDecoration,
- InputDecoration? inputDecoration,
- Widget? clearAction = const Icon(Icons.clear),
- required void onChangeSearch(),
- double searchBarElevation = 0.0,
- BorderRadiusGeometry? searchBorderRadiusGeometry,
- TextStyle? textFieldTextStyle,
- Duration? debounceDuration = const Duration(milliseconds: 500),
- Decoration? searchBarDecoration,
- SearchTermValidator<
String> ? searchTermValidator,
Implementation
const SimpleSearchBar({
Key? key,
this.leading,
this.topLeading,
this.padding,
this.title,
this.textFieldDecoration,
this.inputDecoration,
this.clearAction = const Icon(Icons.clear),
required this.onChangeSearch,
this.searchBarElevation = 0.0,
this.searchBorderRadiusGeometry,
this.textFieldTextStyle,
this.debounceDuration = const Duration(milliseconds: 500),
this.searchBarDecoration,
this.searchTermValidator,
}) : super(key: key);