Skip to content

Do i need to use the FlutterTagger always as a bottomNavigationBar widget? #29

@SmearyQuill

Description

@SmearyQuill

i'm trying to add the tagging feature to my app using the plugin flutter_chat_ui from here: https://pub.dev/packages/flutter_chat_ui
i took some sample code from the examples of that plugin and i placed the FlutterTagger as a wrapper for the TextField that was already available but the tag list is not visible, i used Flutter dev tools and discovered that the overlay has always a width = 0, debbuging the code of fluttertagger i find out that his code is failing:

try { final renderBox = _textFieldKey.currentContext!.findRenderObject() as RenderBox; width = renderBox.size.width; offset = renderBox.localToGlobal(Offset.zero); } catch (_) {}
so the width is always 0 but im not sure why the _textFieldKey.currentContext could be null and fail.

thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions