word_search: mark ambiguous cross references with question mark icon

This commit is contained in:
2025-07-16 23:46:24 +02:00
parent 62fef1d96d
commit 3795d4cf8c
2 changed files with 7 additions and 0 deletions

View File

@@ -20,6 +20,7 @@
- (Re)added a custom splash screen for nicer looking app startup.
- (Re)added a custom launcher icon for the app.
- Don't collapse meaning/yomi lists in kanji search results despite the list being long.
- Mark ambiguous antonyms and "See also" references with a question mark icon.
## Bugfixes 🐞

View File

@@ -88,6 +88,9 @@ class Sense extends StatelessWidget {
(antonym) => SearchResultCard(
result: antonym.xrefResult!,
backgroundColor: Colors.black38,
leading: antonym.ambiguous
? const Icon(Icons.question_mark)
: null,
),
),
if (sense.seeAlso.isNotEmpty &&
@@ -102,6 +105,9 @@ class Sense extends StatelessWidget {
(seeAlso) => SearchResultCard(
result: seeAlso.xrefResult!,
backgroundColor: Colors.black38,
leading: seeAlso.ambiguous
? const Icon(Icons.question_mark)
: null,
),
),
]