File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -427,6 +427,11 @@ class _TextEmoji extends StatelessWidget {
427
427
428
428
@override
429
429
Widget build (BuildContext context) {
430
+ // Encourage line breaks before "_" (common in these), but try not
431
+ // to leave a colon alone on a line. See:
432
+ // <https://github.com/flutter/flutter/issues/61081#issuecomment-1103330522>
433
+ final text = ':\u feff${emojiName .replaceAll ('_' , '\u 200b_' )}\u feff:' ;
434
+
430
435
final reactionTheme = EmojiReactionTheme .of (context);
431
436
return Text (
432
437
textAlign: TextAlign .end,
@@ -438,9 +443,6 @@ class _TextEmoji extends StatelessWidget {
438
443
color: selected ? reactionTheme.textSelected : reactionTheme.textUnselected,
439
444
).merge (weightVariableTextStyle (context,
440
445
wght: selected ? 600 : null )),
441
- // Encourage line breaks before "_" (common in these), but try not
442
- // to leave a colon alone on a line. See:
443
- // <https://github.com/flutter/flutter/issues/61081#issuecomment-1103330522>
444
- ':\u feff${emojiName .replaceAll ('_' , '\u 200b_' )}\u feff:' );
446
+ text);
445
447
}
446
448
}
You can’t perform that action at this time.
0 commit comments