From 264e46ef3a5b71324893bdf399d6ec1332f447b3 Mon Sep 17 00:00:00 2001 From: wcjord <32568597+wcjord@users.noreply.github.com> Date: Fri, 23 May 2025 10:46:06 -0400 Subject: [PATCH] fix(word_zoom_widget): hide text.content.text if same as lemma.text (#2883) * fix(word_zoom_widget): hide text.content.text if same as lemma.text * chore: formatting --------- Co-authored-by: ggurdin --- lib/pangea/toolbar/widgets/word_zoom/word_zoom_widget.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pangea/toolbar/widgets/word_zoom/word_zoom_widget.dart b/lib/pangea/toolbar/widgets/word_zoom/word_zoom_widget.dart index 37f1dd6cc..8cd2d2ae9 100644 --- a/lib/pangea/toolbar/widgets/word_zoom/word_zoom_widget.dart +++ b/lib/pangea/toolbar/widgets/word_zoom/word_zoom_widget.dart @@ -166,7 +166,8 @@ class WordZoomWidget extends StatelessWidget { crossAxisAlignment: WrapCrossAlignment.center, spacing: 8.0, children: [ - ...[ + if (token.text.content.toLowerCase() != + token.lemma.text.toLowerCase()) ...[ Text( _selectedToken.text.content, style: Theme.of(context).textTheme.bodyLarge,