Replace Blocof with BlocBuilder

add-more-content-to-search-results
Oystein Kristoffer Tveit 2022-01-23 04:16:00 +01:00
parent 679033e52c
commit 9cea71a1a0
1 changed files with 7 additions and 6 deletions

View File

@ -22,12 +22,13 @@ class OtherForms extends StatelessWidget {
Wrap(
children: forms
.map(
(form) => KanjiKanaBox(
word: form,
colors: BlocProvider.of<ThemeBloc>(context)
.state
.theme
.menuGreyLight,
(form) => BlocBuilder<ThemeBloc, ThemeState>(
builder: (context, state) {
return KanjiKanaBox(
word: form,
colors: state.theme.menuGreyLight,
);
},
),
)
.toList(),