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!
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.currentContextcould be null and fail.thanks in advance!