fayeed / flutter_mentions

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

markupBuilder never called #33

Closed Abacaxi-Nelson closed 3 years ago

Abacaxi-Nelson commented 3 years ago

Hi all,

Having this code

Mention(
                trigger: '@',
                disableMarkup: false,
                markupBuilder: (trigger, mention, value) {
                  print("markupBuilder");
                  print("mention ${mention} value ${value}");
                  return '[trigger, mention, value]';
                },
                style: const TextStyle(
                  color: Colors.blue,
                  fontWeight: FontWeight.bold,
                  fontSize: 17,
                ),
                data: _users,
                suggestionBuilder: (data) {
                  ...
                }),
          ],

markupBuilder is never called, am i missing something ?

thank you,

Abacaxi-Nelson commented 3 years ago

Called when calling key.currentState.controller.markupText