maxim-saplin / data_table_2

In-place substitute for Flutter's DataTable and PaginatedDataTable with fixed/sticky header and extra features
https://pub.dev/packages/data_table_2
BSD 3-Clause "New" or "Revised" License
202 stars 135 forks source link

Horizontal Scroll Bar Issue #243

Closed aaronlee145 closed 8 months ago

aaronlee145 commented 8 months ago

Hello,

The horizontal scroll bar appears randomly when resizing the screen, even when it should not be scrollable horizontally.

Can this horizontal scroll bar be disabled? Thanks

maxim-saplin commented 8 months ago

https://pub.dev/documentation/data_table_2/latest/data_table_2/DataTable2/isHorizontalScrollBarVisible.html

aaronlee145 commented 8 months ago

Thanks, I have tried it before, but it still appears when i hover on the table. Can i disable it completely? Thanks a lot

maxim-saplin commented 8 months ago

Try playing with scroll bar theming

return Theme(
        data: ThemeData(
            scrollbarTheme: ScrollbarThemeData(
                thumbVisibility: ...
                thumbColor: ...
        child: DataTable2(
aaronlee145 commented 8 months ago

I want to keep the vertical scroll bar, but with scroll bar theme I cannot have separate theme for vertical/ horizontal scroll bar.

Will stick with isHorizontalScrollBarVisible for now if it cannot be completely disabled.

Thanks again