Replace Blocof with BlocBuilder
This commit is contained in:
parent
679033e52c
commit
9cea71a1a0
|
@ -22,12 +22,13 @@ class OtherForms extends StatelessWidget {
|
||||||
Wrap(
|
Wrap(
|
||||||
children: forms
|
children: forms
|
||||||
.map(
|
.map(
|
||||||
(form) => KanjiKanaBox(
|
(form) => BlocBuilder<ThemeBloc, ThemeState>(
|
||||||
|
builder: (context, state) {
|
||||||
|
return KanjiKanaBox(
|
||||||
word: form,
|
word: form,
|
||||||
colors: BlocProvider.of<ThemeBloc>(context)
|
colors: state.theme.menuGreyLight,
|
||||||
.state
|
);
|
||||||
.theme
|
},
|
||||||
.menuGreyLight,
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.toList(),
|
.toList(),
|
||||||
|
|
Loading…
Reference in New Issue