visual-space / visual-editor

Rich text editor for Flutter based on Delta format (Quill fork)
MIT License
290 stars 47 forks source link

Controller - Build has completed callback #155

Closed adrian-moisa closed 2 years ago

adrian-moisa commented 2 years ago

We need a callback for detecting when the document plain text has changed but timed to be triggered after the build. Such that we can extract the latest rectangles as well. the current callbacks don't work:

Add new callback: onTextReplaceComplete(). Thanks to this new callback we can avoid comparing via onBuildComplete() the new text and the old text to see if the text has changed. Therefore the editor will be more performant, especially for large documents.