SuggestionOverlayBuilder constructor
const
SuggestionOverlayBuilder({
- required Widget builder(
- BuildContext context,
- TextEditingController controller,
- VoidCallback onTap
- required List<
String> items, - void onDeleteSuggestion(
- String value
- double maxHeight = 260,
- Color? color,
- Color? backgroundColor,
- double elevation = 8.0,
- TextEditingController? controller,
- VoidCallback? onTap,
- bool showOnTap = true,
Widget to enable the suggest feature and autocomplete feature.
items: Source list for suggestion. controller: Text editing controller. onTap: Processing when tapping a child element (text field). elevation: Suggest window height. backgroundColor: Background color of suggestion window. onDeleteSuggestion: What to do if the suggestion is deleted. color: Suggestion window text color. builder: Builder for child elements. showOnTap: True to show suggestions when tapping the element. maxHeight: Maximum height of choices.
Implementation
const SuggestionOverlayBuilder(
{required this.builder,
required this.items,
this.onDeleteSuggestion,
this.maxHeight = 260,
this.color,
this.backgroundColor,
this.elevation = 8.0,
this.controller,
this.onTap,
this.showOnTap = true});