fix: in empty content token practice button in emoji mode, always show user set emoji (#5633)
This commit is contained in:
parent
34d38ca0e3
commit
b4ae6ca770
1 changed files with 8 additions and 6 deletions
|
|
@ -255,12 +255,14 @@ class _NoActivityContentButton extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (practiceMode == MessagePracticeMode.wordEmoji && target != null) {
|
||||
final displayEmoji =
|
||||
PracticeRecordController.correctResponse(target!, token)?.text ??
|
||||
token.vocabConstructID.userSetEmoji ??
|
||||
'';
|
||||
return Text(displayEmoji, style: emojiStyle);
|
||||
if (practiceMode == MessagePracticeMode.wordEmoji) {
|
||||
String? displayEmoji = token.vocabConstructID.userSetEmoji;
|
||||
if (target != null) {
|
||||
displayEmoji =
|
||||
PracticeRecordController.correctResponse(target!, token)?.text ??
|
||||
displayEmoji;
|
||||
}
|
||||
return Text(displayEmoji ?? '', style: emojiStyle);
|
||||
}
|
||||
if (practiceMode == MessagePracticeMode.wordMorph && target != null) {
|
||||
final morphFeature = target!.morphFeature!;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue