data_tables icon indicating copy to clipboard operation
data_tables copied to clipboard

Data Table is not Scrolling Horizontally

Open mhabuburrahman opened this issue 4 years ago • 9 comments

I have an issue.

My table has 8 columns and so some of the columns at the right end(edge) are not showing. I tried scrolling horizontally to show hidden columns but that is not working despite all I've tried. I want it to scroll horizontally because I am building for Web with it.

mhabuburrahman avatar Nov 02 '21 10:11 mhabuburrahman

Hmm does it do the same on desktop?

rodydavis avatar Nov 02 '21 16:11 rodydavis

yes. I'm facing this problem on both desktop and web.

mhabuburrahman avatar Nov 02 '21 16:11 mhabuburrahman

Hi

I can confirm that this has been a problem on both web and desktop for a while.

CrisNegoianu avatar Nov 02 '21 17:11 CrisNegoianu

Same problem on the web version. Any update?

Mapk26 avatar Dec 09 '21 10:12 Mapk26

After I added those ScrollBehaviors, it works at horizontal for web.

  Set<PointerDeviceKind> get dragDevices => {
        PointerDeviceKind.touch,
        PointerDeviceKind.mouse,
      };

starlitya avatar Dec 04 '22 05:12 starlitya

That sounds great. If you could update the package I would really appreciate it. Thanks.

CrisNegoianu avatar Dec 04 '22 10:12 CrisNegoianu

It's from the official doc: https://docs.flutter.dev/release/breaking-changes/default-scroll-behavior-drag and my flutter version is 3.3.8.

Hopefully it helps. : )

starlitya avatar Dec 04 '22 14:12 starlitya

Can you make a PR?

rodydavis avatar Dec 04 '22 16:12 rodydavis

Created: https://github.com/rodydavis/data_tables/pull/48 Thanks!

starlitya avatar Dec 08 '22 01:12 starlitya