Fintasys / emoji_picker_flutter

A Flutter package that provides an Emoji picker widget with 1500+ emojis in 8 categories.
MIT License
154 stars 114 forks source link

[bug] TextField is not automatically scrolling when it is being updated via emoji_picker_flutter #179

Closed starfreck closed 6 months ago

starfreck commented 6 months ago

When the TextField is being updated via keyboard it is scrolling automatically but when it is being updated via EmojiPicker it is not working.

...
TextField(
    minLines: 1,
    maxLines: 4, // Auto scrolling should work after 4th line
    focusNode: focusNode,
    controller: textEditingController,
    decoration: const InputDecoration(
        hintText: "Message",
        border: InputBorder.none,
    ),
),
...

Good Example:

https://github.com/Fintasys/emoji_picker_flutter/assets/15255654/dd54f8ce-89c1-4815-98d8-470a20a2c9b7

Bad Example:

https://github.com/Fintasys/emoji_picker_flutter/assets/15255654/e643b5e8-4a28-4873-be3d-1d7cdcb0f047