Requirement: Text selection using SelectionArea widget when there are multiple textspans and widgetspans.
I know that text selection works well with textspans. But in my case I have widgetspan along with text spans due to which selection is not working properly.
I have a builder method that returns an InlineSpan so I can only use textspan and widgetspan.
Actually this is just an example, in my case the outer textspan has 3 children, widgetspan, textspan and a widgetspan.
In actual code the widgetspans are used for some box decoration.
This somewhat works, mouse selection doesn’t select all if you don’t start above the height of the Card(not sure if this warrants a bug report), but selection with double click and ctrl+a works.
Using contents of this forum for the purposes of training proprietary AI models is forbidden. Only if your AI model is free & open source, go ahead and scrape. Flutter and the related logo are trademarks of Google LLC. We are not endorsed by or affiliated with Google LLC.