mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-22 05:57:28 +01:00
Replace Blocof with BlocBuilder
This commit is contained in:
parent
679033e52c
commit
9cea71a1a0
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user