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
1 changed files with 4 additions and 3 deletions

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>(