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 {
427427
428428 @override
429429 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+
430435 final reactionTheme = EmojiReactionTheme .of (context);
431436 return Text (
432437 textAlign: TextAlign .end,
@@ -438,9 +443,6 @@ class _TextEmoji extends StatelessWidget {
438443 color: selected ? reactionTheme.textSelected : reactionTheme.textUnselected,
439444 ).merge (weightVariableTextStyle (context,
440445 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);
445447 }
446448}
You can’t perform that action at this time.
0 commit comments