mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: listen on listState if changed
This commit is contained in:
@ -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) {
|
||||||
|
Reference in New Issue
Block a user