3 ms·
I'm not aware of any planned/possible way to do copy exactly as you would an HTML page with HTML tags, but there's a big project to make selection and copying m
by justinmc 4y ago
I'm not aware of any planned/possible way to do copy exactly as you would an HTML page with HTML tags, but there's a big project to make selection and copying much simpler and more powerful (design doc [1], in progress PR[2]).
With that PR it should be easy to just add one SelectionArea to the root of your app in order to make everything selectable, like it would be on a web page. You don't need SelectableText widgets. There's an example of this in the PR [3]. No built-in support for multimedia or rich text copying yet though.
Text input fields should already do copy/paste pretty much the same as native.
[1] http://flutter.dev/go/global-selection http://flutter.dev/go/global-selection
[2] https://github.com/flutter/flutter/pull/95226 https://github.com/flutter/flutter/pull/95226
[3] https://github.com/flutter/flutter/pull/95226/files#diff-a90e85a748afbb4ab24927fbf2eb51e19a41f906d330a1f06ead0704233cafae https://github.com/flutter/flutter/pull/95226/files#diff-a90...
- kringo 4y agoGreat initiative. Wondering why can't Google make this a priority and make it fast instead of focus on desktop and other device support. Do they know that a ton of devs are not jumping in because of this one simple issue and sticking to other frameworks?
- matchbok 4y agoKind of crazy all this effort is being put into just recreating something that has been around, and works fine, for 20 years. What a waste of resources.