Make DetectableText selectable
siuvoniazzi opened this issue · 1 comments
siuvoniazzi commented
Currently it is not possible to let the user select text with the DetectableText Widget. This feature would be very welcome. Similar to SelectableText.
santa112358 commented
Hi @siuvoniazzi , thank you for the request.
I recommend you to use SelectableText.rich and getDetectedTextSpan.
SelectableText.rich(
getDetectedTextSpan(
decoratedStyle: style.copyWith(color: Colors.blue),
basicStyle: style,
source: "#hello world",
detectionRegExp: hashTagRegExp),
),
If you have any questions, please reopen this issue. Thank you.