SpellCheckingTextEditor
A drop-in text editor composable with integrated spell checking.
Wraps BasicTextEditor and overlays spell-check decorations driven by a SpellCheckState. Edits are observed reactively: affected spans are invalidated immediately and re-checked once typing goes quiet. Secondary clicks and taps on a flagged span open a context menu of Suggestions for the misspelled word or sentence-level Correction.
Parameters
The EditorSpellChecker backing spell checks; used to build a default state when none is provided. May be null to disable checking.
The SpellCheckState coordinating spell checking over the underlying TextEditorState. Defaults to a remembered state built from spellChecker.
The Modifier applied to the editor surface.
Padding applied around the editor content.
Whether the editor accepts input and focus.
Whether the editor requests focus on first composition.
The TextEditorStyle controlling appearance.
Localized strings for the built-in context menu.
Optional listener for clicks on non-spell-check rich spans; spell-check spans are handled internally.