chore: in reading asssitance input bar, if all practice activities for message are completed, show all done message (#4183)

This commit is contained in:
ggurdin 2025-09-29 15:43:20 -04:00 committed by GitHub
parent a51870ccec
commit b159bfe1c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,15 +54,19 @@ class ReadingAssistanceInputBarState extends State<ReadingAssistanceInputBar> {
case MessageMode.wordZoom:
case MessageMode.noneSelected:
case MessageMode.messageMeaning:
//TODO: show all emojis for the lemmas and allow sending normal reactions
content = Text(
L10n.of(context).choosePracticeMode,
style: Theme.of(context)
.textTheme
.bodyLarge
?.copyWith(fontStyle: FontStyle.italic),
textAlign: TextAlign.center,
);
content = overlayController.isTotallyDone
? Text(
L10n.of(context).allDone,
textAlign: TextAlign.center,
)
: Text(
L10n.of(context).choosePracticeMode,
style: Theme.of(context)
.textTheme
.bodyLarge
?.copyWith(fontStyle: FontStyle.italic),
textAlign: TextAlign.center,
);
case MessageMode.messageTranslation:
if (overlayController.isTranslationUnlocked) {