rich_text_flutter 1.0.9
rich_text_flutter: ^1.0.9 copied to clipboard
A cross-platform Flutter rich text editor with HTML input and output. Supports web, iOS, Android, macOS, and Windows.
1.0.9 #
- Fixed
controller.textreturning empty in edit mode andonHtmlChangedfiring only once then stopping. - Simplified JS change detection: removed dedup (
_lastSentHtml) and debounce which could get stuck and silently block all subsequent change events. sendToFlutternow always posts the current HTML — simple and reliable._programmaticflag in JS suppresses events only during__setEditorContent(synchronous).- Dart-side
_settingHtmlguard skips the entire_onEditorMessagehandler whilesetHtmlis in flight, preventing stale/empty content from overwriting_currentHtml.
1.0.7 #
- Made
controller.textsync robust across all platforms by addingMutationObserver,keyup,compositionend, andblurevent listeners alongsideinput. - Deduplicates messages so the same HTML is not posted twice.
__setEditorContentnow updates the sent-cache to prevent echo onsetHtml.
1.0.6 #
- Fixed
invalid_use_of_protected_memberwarning that preventedcontroller.textfrom syncing with live editor content.
1.0.5 #
- Added
updateFromEditorsocontroller.textstays in sync with user edits in the editor.
1.0.4 #
- Fixed editor internal scroll not working when placed inside a scrollable parent (
SingleChildScrollView,ListView, etc.). - Uses
EagerGestureRecognizerso the WebView correctly claims touch events in nested scroll scenarios.
1.0.3 #
- Fixed editor not scrolling when content exceeds visible area.
- Toolbar now stays pinned at the top with internal scroll for the editor body.
1.0.2 #
- Added synchronous
textgetter/setter onRichTextEditorControllerfor convenience (works likeTextEditingController.text). - Can now set content before the WebView loads:
controller.text = 'Hello';.
1.0.1 #
- Documentation and metadata improvements.
1.0.0 #
- Initial release.
- Cross-platform rich text editor (Android, iOS, Web, macOS, Windows).
- HTML input and HTML output.
- Toolbar: bold, italic, underline, link, bullet list, numbered list.
RichTextEditorController:getHtml(),setHtml(),clear().