From 9cea71a1a02b2fba4a36977ffb09e1b7c0e60900 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 23 Jan 2022 04:16:00 +0100 Subject: [PATCH] Replace Blocof with BlocBuilder --- .../search_results_body/parts/other_forms.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/components/search/search_results_body/parts/other_forms.dart b/lib/components/search/search_results_body/parts/other_forms.dart index 41a4dbb..40dfec3 100644 --- a/lib/components/search/search_results_body/parts/other_forms.dart +++ b/lib/components/search/search_results_body/parts/other_forms.dart @@ -22,12 +22,13 @@ class OtherForms extends StatelessWidget { Wrap( children: forms .map( - (form) => KanjiKanaBox( - word: form, - colors: BlocProvider.of(context) - .state - .theme - .menuGreyLight, + (form) => BlocBuilder( + builder: (context, state) { + return KanjiKanaBox( + word: form, + colors: state.theme.menuGreyLight, + ); + }, ), ) .toList(),