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 is not selectable by default on the web #32246
Comments
See also #5422 - would the framework fix in progress for this be a fix for web? Or is the expectation in web that all text be selectable? |
the expectation in web is strongly that all text is selectable, unless the property |
Any update here? We have 7 months since the last post, just an update can help us. |
@dnfield @lubritto In Flutter, text isn't selectable by default. Try using |
Hi Dan, are you suggesting adding an api (maybe theme level) that will allow changing the default ?I'm fine with the consistency (default off everywhere). I think web's default makes sense on content heavy sites/docs rather than apps. |
With respect @mdebbar, this answer isn't satisfactory. SelectableText doesn't behave as expected in a Web context. Users expect to be able to use ctrl+c or right click on the selected text with their mouse and see "copy" in the context menu. None of this appears to be the case with SelectableText, at least on the beta channel. |
No way to copy text using SelectableText on dev channel. As for me the issue should be reopened. Web without ability to select/copy is... not what I expect from the web :) |
@azol that sounds like a seperate issue - please file one for that ( |
Inadvertent content and web scraping protection is the best :D |
I understand and respect why keeping behavior consistent with other parts of flutter is desirable, but I also think there might be a better compromise to be struck here - If you go to twitter.com, nytimes.com, github.com, etc, 95+% of text is selectable. Breaking this assumption will cause some negative emotional reactions towards flutter web apps from users and developers, and that it's worth reconsidering the intended behavior here. Text behavior is a common smell test for "is this a native web experience?". Even if this behavior stands for the time being, do you think another solution, such as using the Theme to store whether text is selectable by default, could be considered in the future? |
SelectableText does not help, because it makes the text selectable only within one widget. Nash0x7E2 mentioned this issue on Jan 18
|
Any updates on this? |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Describe the bug
Text cannot be selected for copying. This affects all text elements other than text fields.
To Reproduce
Expected behavior
Text should be selectable and can be copied to the clipboard.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: