Skip to content

Commit 9386ec5

Browse files
committed
emoji: Use directional alignment for Unicode emoji on iOS
The alignment argument has no effect on the horizontal axis, so replace centerLeft with center. Fixes the issue described here: zulip#2069 (comment)
1 parent 5691ed1 commit 9386ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/emoji.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class UnicodeEmojiWidget extends StatelessWidget {
161161
// accomplished with help from a [StrutStyle]; see below).
162162
// - There seems to be approximately no space on its left.
163163
final boxSize = textScaler.scale(size);
164-
return Stack(alignment: Alignment.centerLeft, clipBehavior: Clip.none, children: [
164+
return Stack(alignment: Alignment.center, clipBehavior: Clip.none, children: [
165165
SizedBox(height: boxSize, width: boxSize),
166166
PositionedDirectional(start: 0, child: Text(
167167
textScaler: textScaler,

0 commit comments

Comments
 (0)