Closed Ashish-Raturi closed 2 years ago
@Ashish-Raturi
A callback can be set by just passing it to the onPressed
parameter.
If you would like to make the text visibly selectable to copy etc. you can just wrap your Text widget inside a SelectableText widget.
I'll close it due to lack of information
I am also trying to create a selectable text with highlighting.
Without highlighting i can simply use SelectableWidget (https://api.flutter.dev/flutter/material/SelectableText-class.html) which allows the user to mark the text and copy it to clipboard.
With your plugin i can manage the Highlighting but loosing the select text feature available on SelectableWidget.
From the answer given by @fleeser it seems there is an option to assign a text widget instead of text (only string parameter is available), If it is possible , an example will be much appreciated.
how to make it selectable text