feat: show message when no word selected (#1479)

pull/1593/head
ggurdin 10 months ago committed by GitHub
parent 5588d8ec16
commit f9dce6fc11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4659,7 +4659,7 @@
"myBaseLanguage": "My base language",
"publicProfileTitle": "Allow my profile to be found in search",
"publicProfileDesc": "By enabling this option, I confirm that I am of legal age in my country of residence",
"clickWordsInstructions": "Click on individual words for more activities.",
"clickWordsInstructions": "Click on a word or the buttons below to learn more",
"chooseBestDefinition": "Choose the best definition",
"meaningSectionHeader": "Meaning:",
"formSectionHeader": "Forms used in chats:",

@ -105,10 +105,9 @@ class MessageToolbar extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (overlayController.toolbarMode == MessageMode.noneSelected ||
![MessageTypes.Text, MessageTypes.Audio].contains(
pangeaMessageEvent.event.messageType,
)) {
if (![MessageTypes.Text, MessageTypes.Audio].contains(
pangeaMessageEvent.event.messageType,
)) {
return const SizedBox();
}

Loading…
Cancel
Save