1
0
mirror of https://github.com/h7x4/Jisho-Study-Tool.git synced 2024-12-22 13:57:29 +01:00

Fix extensive search not showing

This commit is contained in:
Oystein Kristoffer Tveit 2022-01-23 17:18:17 +01:00
parent 935d2a17df
commit 9e50221abd

View File

@ -30,14 +30,15 @@ class Sense extends StatelessWidget {
return supplementalInfo;
}
List<String> get _supplementalWithoutAntonyms =>
_removeAntonyms(List.from(meaning?.supplemental ?? []));
List<String>? get _supplementalWithoutAntonyms =>
(meaning == null) ? null :
_removeAntonyms(List.from(meaning!.supplemental));
bool get hasSupplementalInfo =>
sense.info.isNotEmpty ||
sense.source.isNotEmpty ||
sense.tags.isNotEmpty ||
_supplementalWithoutAntonyms.isNotEmpty;
(_supplementalWithoutAntonyms?.isNotEmpty ?? false);
@override
Widget build(BuildContext context) => BlocBuilder<ThemeBloc, ThemeState>(