|
@@ -23,7 +23,6 @@ class BoardCardBloc extends Bloc<BoardCardEvent, BoardCardState> {
|
|
}) : _rowService = RowFFIService(
|
|
}) : _rowService = RowFFIService(
|
|
gridId: gridId,
|
|
gridId: gridId,
|
|
blockId: dataController.rowPB.blockId,
|
|
blockId: dataController.rowPB.blockId,
|
|
- rowId: dataController.rowPB.id,
|
|
|
|
),
|
|
),
|
|
_dataController = dataController,
|
|
_dataController = dataController,
|
|
super(BoardCardState.initial(
|
|
super(BoardCardState.initial(
|
|
@@ -34,9 +33,6 @@ class BoardCardBloc extends Bloc<BoardCardEvent, BoardCardState> {
|
|
initial: (_InitialRow value) async {
|
|
initial: (_InitialRow value) async {
|
|
await _startListening();
|
|
await _startListening();
|
|
},
|
|
},
|
|
- createRow: (_CreateRow value) {
|
|
|
|
- _rowService.createRow();
|
|
|
|
- },
|
|
|
|
didReceiveCells: (_DidReceiveCells value) async {
|
|
didReceiveCells: (_DidReceiveCells value) async {
|
|
final cells = value.gridCellMap.values
|
|
final cells = value.gridCellMap.values
|
|
.map((e) => GridCellEquatable(e.field))
|
|
.map((e) => GridCellEquatable(e.field))
|
|
@@ -61,7 +57,6 @@ class BoardCardBloc extends Bloc<BoardCardEvent, BoardCardState> {
|
|
RowInfo rowInfo() {
|
|
RowInfo rowInfo() {
|
|
return RowInfo(
|
|
return RowInfo(
|
|
gridId: _rowService.gridId,
|
|
gridId: _rowService.gridId,
|
|
- blockId: _rowService.blockId,
|
|
|
|
fields: UnmodifiableListView(
|
|
fields: UnmodifiableListView(
|
|
state.cells.map((cell) => cell._field).toList(),
|
|
state.cells.map((cell) => cell._field).toList(),
|
|
),
|
|
),
|
|
@@ -83,7 +78,6 @@ class BoardCardBloc extends Bloc<BoardCardEvent, BoardCardState> {
|
|
@freezed
|
|
@freezed
|
|
class BoardCardEvent with _$BoardCardEvent {
|
|
class BoardCardEvent with _$BoardCardEvent {
|
|
const factory BoardCardEvent.initial() = _InitialRow;
|
|
const factory BoardCardEvent.initial() = _InitialRow;
|
|
- const factory BoardCardEvent.createRow() = _CreateRow;
|
|
|
|
const factory BoardCardEvent.didReceiveCells(
|
|
const factory BoardCardEvent.didReceiveCells(
|
|
GridCellMap gridCellMap, RowsChangedReason reason) = _DidReceiveCells;
|
|
GridCellMap gridCellMap, RowsChangedReason reason) = _DidReceiveCells;
|
|
}
|
|
}
|