memspace / zefyr

Soft and gentle rich text editing for Flutter applications.
https://zefyr-editor.gitbook.io
2.22k stars 550 forks source link

Dynamically Scroll to a particular heading in zefyr TextEditor. #597

Open atul-chaudhary opened 2 years ago

atul-chaudhary commented 2 years ago

I have a very large document [multiple text paragraph with multiple heading], So with on-click of a button, I want to dynamically scroll to a particular text or heading in the document.

Is that possible in zefyr, I know there is a scroll controller that can be used to implement such functionality, But real problem is how do i find the location of the text or position so that those positions or offset can be given to scroll controller for dynamically scrolling to a particular text.

Or is there a way to search text in document in zefyr that can also be helpful