When long tab on Text widget, a tooltip show up with \'copy\'. When click on the \'copy\' the text content should copy to system clipboard.
The following will copy t
SelectableText( "Copy me", onTap: () { // you can show toast to the user, like "Copied" }, )
If you want to have different styling for text, use
SelectableText.rich( TextSpan( children: [ TextSpan(text: "Copy me", style: TextStyle(color: Colors.red)), TextSpan(text: " and leave me"), ], ), )