flutter_mentions icon indicating copy to clipboard operation
flutter_mentions copied to clipboard

How to trigger the function with '$' dollor sign.

Open sarthak290 opened this issue 3 years ago • 5 comments

Hello , I want to ask if there is any way so that I can may trigger value to $ dollar sign. I have tried many ways but it didn't work error shows bad statement. Please reply with a solution with which I can make trigger value to $ . I want output to be like $microsoft .

sarthak290 avatar Aug 31 '20 23:08 sarthak290

@sarthak290 I think the issue is due to the fact that $ inside quotes are used for string composition, that could be the cause of the issue. I would suggest avoiding using the $ symbol for now.

fayeed avatar Sep 09 '20 03:09 fayeed

Please suggest a workaround I really need $ symbol

sarthak290 avatar Sep 09 '20 03:09 sarthak290

@sarthak290 To allow the use of dollar sign in the package I will have to convert all the text string to raw string that should fix the issue, other than that there is no other temporary solution. You can create a PR for this.

fayeed avatar Sep 10 '20 02:09 fayeed

Okay I will create a PR . Just tell me where I have to do the changes in mention_view.dart file right?

sarthak290 avatar Sep 11 '20 06:09 sarthak290

Was this ever solved, I am having the same issue. I believe it is with the first where function which is causing a bad state no element exception

jacobhtye avatar Nov 11 '21 23:11 jacobhtye