-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text selection #70
Comments
after I put the HighlightView under a SelectionArea, the text still can't be selected, why? |
Because #71 needs to be merged before that can work. |
this repo seems have be abandoned, any other package recommend? I just want it can highlight xml and also can copy. |
ok,I found this one worked: https://github.com/1runeberg/code_highlight_view |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are some use cases in which it would be desirable to be able to select the text inside
HighlightView
.I say some use cases, because there are also times when you don't want it selectable, so I would not advocate for making the text selectable by default.
The modern way of allowing selection is to wrap the desired widget tree in a
SelectableRegion
(usually viaSelectionArea
). Ideally users ofHighlightView
should be able to put aSelectionArea
aboveHighlightView
and selection should just work.The text was updated successfully, but these errors were encountered: