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

Replace Blocof with BlocBuilder

This commit is contained in:
Oystein Kristoffer Tveit 2022-01-23 04:16:00 +01:00
parent 679033e52c
commit 9cea71a1a0

View File

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