feat: update position table
This commit is contained in:
@@ -110,12 +110,12 @@ class _TableManagementScreenState extends State<TableManagementScreen> {
|
||||
feedback: TableWidget(table: table),
|
||||
childWhenDragging: SizedBox.shrink(),
|
||||
onDragEnd: (details) {
|
||||
// context
|
||||
// .read<ChangePositionTableBloc>()
|
||||
// .add(ChangePositionTableEvent.changePositionTable(
|
||||
// tableId: table.id,
|
||||
// position: details.offset,
|
||||
// ));
|
||||
context
|
||||
.read<ChangePositionTableBloc>()
|
||||
.add(ChangePositionTableEvent.changePositionTable(
|
||||
tableId: table.id ?? "",
|
||||
position: details.offset,
|
||||
));
|
||||
},
|
||||
child: TableWidget(table: table),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user