flutterdartright-to-left

flutter selectable text anchor position in rtl languages


In flutter when I try using SelectableText widget with rtl languages, anchors behave wrong.

enter image description here

It's really unpredictable. you grab one of the anchors but the other one moves...

I tested this on both a real device and emulators.
I didn't manage to find anything about this on internet. How can I fix this?


Solution

  • In my case, wrapping a Text widget with SelectionArea widget worked...
    It was a painful journey to find this. Hope it helps others.