santa112358/detectable_text_field

Make DetectableText selectable

siuvoniazzi opened this issue · 1 comments

Currently it is not possible to let the user select text with the DetectableText Widget. This feature would be very welcome. Similar to SelectableText.

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.