visual-space / visual-editor

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

Markers - EditorController, option to toggle all markers at once #111

Closed adrian-moisa closed 2 years ago

adrian-moisa commented 2 years ago

Toggling markers from the editor controller can be useful for situations where the developers want to hide temporarily all markers.

adrian-moisa commented 2 years ago

Added new toggleMarkers$ stream in the state store. Used to trigger the markForPain() inside of EditableTextLineRenderer. Also added method in the controller: toggleMarkers(). Improved docs.

https://user-images.githubusercontent.com/11160141/190877558-42d46f08-dbf0-4c29-b4c5-cd6028bc33d0.mov