Hi all, I hope you’re doing well.
We’ve been using the official flutter_markdown package to render blogpost-like content in our application.
A new important requirement is to allow users to select a portion of the text and highlight it (see below).
I’ve been exploring the MarkdownBody selectable: false
property; as well as wrapping the component inside a SelectionArea.
Challenges:
- When I’m using the
selectable:true
property users can’t select multiple paragraphs. They’re restricted to the limits of the paragraph they started the selection. - When using SelectionArea, the
onSelectionChanged()
callback doesn’t receive any information of the position/offset of the selection.
Does anyone have any insights on the feasibility of what I’m trying to achieve or how to address it?
I’m also starting to consider different libraries (would appreciate any thoughts/recommendations)
Thanks in advance!