mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: create grid for each test (#1431)
This commit is contained in:
@ -105,11 +105,9 @@ class GridDataController {
|
||||
fieldController: fieldController,
|
||||
);
|
||||
|
||||
cache.addListener(
|
||||
onRowsChanged: (reason) {
|
||||
_onRowChanged?.call(rowInfos, reason);
|
||||
},
|
||||
);
|
||||
cache.addListener(onRowsChanged: (reason) {
|
||||
_onRowChanged?.call(rowInfos, reason);
|
||||
});
|
||||
|
||||
_blocks[block.id] = cache;
|
||||
}
|
||||
|
@ -145,9 +145,7 @@ class GridRowCache {
|
||||
|
||||
void _showRows(List<String> visibleRows) {}
|
||||
|
||||
void onRowsChanged(
|
||||
void Function(RowsChangedReason) onRowChanged,
|
||||
) {
|
||||
void onRowsChanged(void Function(RowsChangedReason) onRowChanged) {
|
||||
_rowChangeReasonNotifier.addListener(() {
|
||||
onRowChanged(_rowChangeReasonNotifier.reason);
|
||||
});
|
||||
|
Reference in New Issue
Block a user