mirror of
https://github.com/AppFlowy-IO/AppFlowy
synced 2026-05-24 09:38:25 +00:00
fix: listen on listState if changed
This commit is contained in:
parent
0c8850503f
commit
ea654b602c
1 changed files with 1 additions and 0 deletions
|
|
@ -193,6 +193,7 @@ class _GridRowsState extends State<_GridRows> {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return BlocConsumer<GridBloc, GridState>(
|
return BlocConsumer<GridBloc, GridState>(
|
||||||
|
listenWhen: (previous, current) => previous.listState != current.listState,
|
||||||
listener: (context, state) {
|
listener: (context, state) {
|
||||||
state.listState.map(
|
state.listState.map(
|
||||||
insert: (value) {
|
insert: (value) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue