for a DataTable, it works to wrap the widget in SelectionArea
DataTable
SelectionArea
SelectionArea( child: DataTable(