Skip to content

Commit

Permalink
Merge pull request #392 from poppingmoon/fix-emoji-keyboard
Browse files Browse the repository at this point in the history
マッチする絵文字がないときデフォルトの入力補完を表示する
  • Loading branch information
shiosyakeyakini-info authored Oct 18, 2023
2 parents 4c4ccc8 + f90baca commit 81a4ae0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/view/common/note_create/emoji_keyboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 81a4ae0

Please sign in to comment.