EasySearchBar constructor
const
EasySearchBar({
- Key? key,
- required Widget title,
- required dynamic onSearch(),
- Widget suggestionBuilder(
- String data
- Widget? leading,
- List<
Widget> actions = const [], - TextStyle? searchHintStyle,
- TextStyle searchTextStyle = const TextStyle(),
- SystemUiOverlayStyle? systemOverlayStyle,
- List<
String> ? suggestions, - dynamic onSuggestionTap(
- String data
- IconThemeData? searchBackIconTheme,
- Future<
List< asyncSuggestions(String> >- String value
- Color? searchCursorColor,
- String searchHintText = '',
- Color? searchBackgroundColor,
- Widget suggestionLoaderBuilder()?,
- double suggestionsElevation = 5,
- Color? backgroundColor,
- Color? foregroundColor,
- double? elevation,
- double appBarHeight = 56,
- bool isFloating = false,
- bool openOverlayOnSearch = false,
- TextStyle? titleTextStyle,
- IconThemeData? iconTheme,
- TextStyle suggestionTextStyle = const TextStyle(),
- Color? suggestionBackgroundColor,
- Duration animationDuration = const Duration(milliseconds: 450),
- Duration debounceDuration = const Duration(milliseconds: 400),
- TextInputType searchTextKeyboardType = TextInputType.text,
Implementation
const EasySearchBar({
Key? key,
required this.title,
required this.onSearch,
this.suggestionBuilder,
this.leading,
this.actions = const [],
this.searchHintStyle,
this.searchTextStyle = const TextStyle(),
this.systemOverlayStyle,
this.suggestions,
this.onSuggestionTap,
this.searchBackIconTheme,
this.asyncSuggestions,
this.searchCursorColor,
this.searchHintText = '',
this.searchBackgroundColor,
this.suggestionLoaderBuilder,
this.suggestionsElevation = 5,
this.backgroundColor,
this.foregroundColor,
this.elevation,
this.appBarHeight = 56,
this.isFloating = false,
this.openOverlayOnSearch = false,
this.titleTextStyle,
this.iconTheme,
this.suggestionTextStyle = const TextStyle(),
this.suggestionBackgroundColor,
this.animationDuration = const Duration(milliseconds: 450),
this.debounceDuration = const Duration(milliseconds: 400),
this.searchTextKeyboardType = TextInputType.text
}) : assert(elevation == null || elevation >= 0.0),
super(key: key);