I am displaying a text in a card, I want to add long click functionality to display more info about selected word ( the word that is long clicked ). Which text widget supports it? SelectableText widget is not suitable, because it gives user ability to copy all of my text to somewhere else, I don't like it, I just want to find out which word is selected so I display it's meaning.
Currently I am using Html widget which apparently doesn't support long pressed word.
GestureDetectorhasonLongPressStartproperty so you can get the location where you "long "pressed, now you can useParagraphAPI to find the position in your text closest to the given location - pskinkTextit works too -TextusesRenderParagraphas itsRenderObjectas well - pskink