Uses lowercase versions of lemma/form when comparing (#3346)

This commit is contained in:
Kelrap 2025-07-07 10:50:35 -04:00 committed by GitHub
parent 66e4cbc6af
commit 4858e06295
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -214,7 +214,8 @@ class WordZoomWidget extends StatelessWidget {
GestureDetector(
onLongPress: () => controller.toggleEditMode(true),
onDoubleTap: () => controller.toggleEditMode(true),
child: token.lemma.text == token.text.content
child: token.lemma.text.toLowerCase() ==
token.text.content.toLowerCase()
? Text(
controller.lemmaInfo!.meaning,
style: const TextStyle(fontSize: 14.0),