refactor(ui): remove context and add size property to EmojiOverlay

This commit is contained in:
Salvatore Giordano
2021-09-09 17:01:36 +02:00
parent 2f65a0d480
commit 19472027cc
4 changed files with 13 additions and 13 deletions
@@ -1170,9 +1170,11 @@ class MessageInputState extends State<MessageInput> {
.split(':');
final query = splits.last.toLowerCase();
// ignore: cast_nullable_to_non_nullable
final renderObject = context.findRenderObject() as RenderBox;
return EmojiOverlay(
context,
size: Size(renderObject.size.width - 16, 200),
query: query,
onEmojiResult: (emoji) {
_chooseEmoji(splits, emoji);