showSpellCheckSuggestionsToolbar method
- BuildContext? context,
- required WidgetBuilder builder,
Shows toolbar with spell check suggestions of misspelled words that are available for click-and-replace.
Implementation
void showSpellCheckSuggestionsToolbar({
BuildContext? context,
required WidgetBuilder builder,
}) {
if (context == null) {
return;
}
final RenderBox renderBox = context.findRenderObject()! as RenderBox;
_spellCheckToolbarController.show(
context: context,
contextMenuBuilder: (BuildContext context) {
return _SelectionToolbarWrapper(
layerLink: toolbarLayerLink,
offset: -renderBox.localToGlobal(Offset.zero),
child: builder(context),
);
},
);
}