From f90baca7d3a47830143bb78a7b20425532df9ca4 Mon Sep 17 00:00:00 2001 From: poppingmoon <63451158+poppingmoon@users.noreply.github.com> Date: Fri, 13 Oct 2023 20:33:50 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=9E=E3=83=83=E3=83=81=E3=81=99=E3=82=8B?= =?UTF-8?q?=E7=B5=B5=E6=96=87=E5=AD=97=E3=81=8C=E3=81=AA=E3=81=84=E3=81=A8?= =?UTF-8?q?=E3=81=8D=E3=83=87=E3=83=95=E3=82=A9=E3=83=AB=E3=83=88=E3=81=AE?= =?UTF-8?q?=E5=85=A5=E5=8A=9B=E8=A3=9C=E5=AE=8C=E3=82=92=E8=A1=A8=E7=A4=BA?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/view/common/note_create/emoji_keyboard.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/view/common/note_create/emoji_keyboard.dart b/lib/view/common/note_create/emoji_keyboard.dart index 626c4d592..7e10340fa 100644 --- a/lib/view/common/note_create/emoji_keyboard.dart +++ b/lib/view/common/note_create/emoji_keyboard.dart @@ -5,6 +5,7 @@ import 'package:miria/model/input_completion_type.dart'; import 'package:miria/model/misskey_emoji_data.dart'; import 'package:miria/providers.dart'; import 'package:miria/view/common/misskey_notes/custom_emoji.dart'; +import 'package:miria/view/common/note_create/basic_keyboard.dart'; import 'package:miria/view/common/note_create/input_completation.dart'; import 'package:miria/view/reaction_picker_dialog/reaction_picker_dialog.dart'; @@ -81,6 +82,13 @@ class EmojiKeyboard extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final filteredEmojis = ref.watch(_filteredEmojisProvider(account)); + if (filteredEmojis.isEmpty) { + return BasicKeyboard( + controller: controller, + focusNode: focusNode, + ); + } + return Row( mainAxisAlignment: MainAxisAlignment.start, mainAxisSize: MainAxisSize.max,