Crazelu / fluttertagger

A Flutter package that allows for the extension of TextFields to provide tagging capabilities (e.g @ user mentions and # hashtags).
MIT License
38 stars 16 forks source link

defect #2

Closed admin924 closed 1 year ago

admin924 commented 1 year ago

Hi @63a27531b866ce0016f9e582#crazelu#. Please call me

How to automatically display in a text box after initState

Crazelu commented 1 year ago

@admin924 thanks for opening this issue. This has now been included in v1.0.0+6. You can create a FlutterTaggerController like so:

 FlutterTaggerController(
    text: "Hey @11a27531b866ce0016f9e582#brad#",
  )

And FlutterTagger will automatically format the tags. You can also set the text value of the controller anywhere else you like but must call formatTags on the controller for the formatting to happen.

controller.text = "Hey @11a27531b866ce0016f9e582#brad#";
controller.formatTags();

Closing this now that it has been resolved.