fix: listen on listState if changed

This commit is contained in:
appflowy 2022-04-15 22:10:38 +08:00
parent 0c8850503f
commit ea654b602c

View File

@ -193,6 +193,7 @@ class _GridRowsState extends State<_GridRows> {
@override
Widget build(BuildContext context) {
return BlocConsumer<GridBloc, GridState>(
listenWhen: (previous, current) => previous.listState != current.listState,
listener: (context, state) {
state.listState.map(
insert: (value) {