fayeed / flutter_mentions

A simple flutter input widget to add @ mentions functionality to your app
MIT License
107 stars 122 forks source link

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

Open sarthak290 opened 4 years ago

sarthak290 commented 4 years ago

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 .

fayeed commented 4 years ago

@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.

sarthak290 commented 4 years ago

Please suggest a workaround I really need $ symbol

fayeed commented 4 years ago

@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.

sarthak290 commented 4 years ago

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

jacobhtye commented 3 years ago

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