Skip to content

Commit 4c42364

Browse files
committed
fix(emoji): Adjust picker layout for plain-text-emojis setting #1587
1 parent 11ffac2 commit 4c42364

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/widgets/emoji_reaction.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,9 @@ class EmojiPickerListEntry extends StatelessWidget {
599599
child: Padding(
600600
padding: const EdgeInsets.symmetric(horizontal: 8),
601601
child: Row(spacing: 4, children: [
602-
if (glyph != null)
603-
Padding(
602+
Padding(
604603
padding: const EdgeInsets.all(10),
605-
child: glyph),
604+
child: glyph ?? SizedBox(width: _emojiSize, height: _emojiSize)),
606605
Flexible(child: Text(label,
607606
maxLines: 2,
608607
overflow: TextOverflow.ellipsis,

0 commit comments

Comments
 (0)