-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support SelectionArea #40
Comments
Hi, I will on this. Unfortunately, I only have time tomorrow. If you can, open a PR to fix this issue and I will approve it. |
Hi. I can't make it work properly. Tried your suggestion, but it is still not working as it should. I don't know how to fix it, so I'll leave the issue open for the future. |
Oh, the only thing is that the selection color is not correct, it should be in purple in my case. 🤔 |
I created a PR, please check: |
I can accept your PR, since it is about the color. Unfortunately, this doesn't work with the example app. I tried to do like you, but when I paste the text on other apps it is weirdly formatted |
By weirdly formatted I mean: spaces between highlighted words not showing, highlighted words not displaying in the correct position and things like that |
This is the text copied on example app: "Flutteropen-source is an mobile application development frameworkGoogle. It is used to develop applications for created by AndroidiOS, as well as being the primary method of creating applications for and GooFuchsia" |
I can confirm that issue exists, I will try to look into that. |
I believe this is a bug in the flutter SDK, filed an issue here: |
You can make RichText selectable by using Text.rich. You'll have to tweak the first named, text, parameter too when you do it. |
When we wrap
SelectionArea
around a widget tree, allText
widgets in this widget tree are selectable.But the
RichText
widget used by this package needs some modification:e.g.
Source: https://api.flutter.dev/flutter/widgets/RichText-class.html
The text was updated successfully, but these errors were encountered: