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 <ggurdin@gmail.com>
This commit is contained in:
wcjord 2025-05-23 10:46:06 -04:00 committed by GitHub
parent 82d78452e0
commit 264e46ef3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,