I want to always show the scroll bar below the datatable for the web version. But it's showing this error message:
The Scrollbar's ScrollController has no ScrollPosition attached.
and the scroll bar doesn't work.
Scrollbar(
isAlwaysShown: true,
controller: ScrollController(),
thickness: 10,
child: PaginatedDataTable(
showCheckboxColumn: false,
columns: generateColumns(),
source: generateDataSources(),
rowsPerPage: count.toInt()),
);
Well try to remove the controller then ?
controller: ScrollController()