fayeed / flutter_mentions

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

onMarkupChanged and onMentionAdd #15

Closed JEuler closed 4 years ago

JEuler commented 4 years ago

Hi! I'm processing the data (layouting it with html tags) in onMarkupChanged. But I see, that if I'm not typing anything rather than just @ mention the data in onMarkupChanged callback is wrong and contains only @. But If typed anything than all is okay.

2020-09-29_13-39-52 2020-09-29_13-40-03 2020-09-29_13-40-46

What I can do to enable mentions callback firing in case I'm just entering only mention?

JEuler commented 4 years ago

It is the same if I'm entering two mentions in row. 2020-09-29_13-42-12 2020-09-29_13-42-18

fayeed commented 4 years ago

@JEuler I don't understand exactly can you explain in more detail that would be great!

JEuler commented 4 years ago

Hi! I meant that when you tap on Suggestion (Mention) the onMarkupChanged is not firing and nothing is added to the rawComment variable I'm defining. So, the problem is that: onMarkupChanged callback is not firing in case we are tapping on the suggestion and it is added to textfield.

JEuler commented 4 years ago

Is that clear now? :)

fayeed commented 4 years ago

Ahh Yes, I will take a look at it, Thanks for the clarification.

JEuler commented 4 years ago

Did you have any chance to look? :)

fayeed commented 4 years ago

@JEuler Gonna look at today

JEuler commented 4 years ago

@fayeed Thank you very very much! 🤗

fayeed commented 4 years ago

@JEuler fixed in v1.0.2

JEuler commented 4 years ago

Insanely cool! Thanks! 🤗