fix: create grid for each test (#1431)

This commit is contained in:
Nathan.fooo
2022-11-10 20:22:37 +08:00
committed by GitHub
parent bbd64fae81
commit 840095d73c
5 changed files with 24 additions and 15 deletions

View File

@ -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;
}

View File

@ -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);
});