Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horizontal Scrolling not working properly in iOS #141

Open
ShanthiniMM opened this issue Sep 22, 2022 · 4 comments
Open

Horizontal Scrolling not working properly in iOS #141

ShanthiniMM opened this issue Sep 22, 2022 · 4 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ShanthiniMM
Copy link

ShanthiniMM commented Sep 22, 2022

@maxim-saplin I am using the datatable2 package in my flutter project. It is working fine in android. but In iOS when scrolling horizontally the headers and rows are splitting. How to solve this issue. Kindly Let me know.

Thanks in advance.

@maxim-saplin
Copy link
Owner

I believe the issue you see happens when reaching edges of the scrollable and when iOS bouncing animation happens. If that's the case it doesn't have a fix and no plan to work on it yet. It is a side effect of the fixed part implementation detail. One of the workaround is playing with scrolling physic and disabling the edge animations.

@ShanthiniMM
Copy link
Author

ShanthiniMM commented Sep 23, 2022

Thank you. I need to add "physics: new ClampingScrollPhysics()" in the datatable2 package code. How can I do that? If any samples available, Kindly Let me know.

@maxim-saplin
Copy link
Owner

Try wrapping data table into ScrollConfiguration:

        ScrollConfiguration(
          behavior: const ScrollBehavior()
              .copyWith(physics: const ClampingScrollPhysics()),
          child: DataTable2(

@maxim-saplin maxim-saplin added bug Something isn't working wontfix This will not be worked on labels Sep 27, 2022
@lutacch
Copy link

lutacch commented Jan 30, 2024

This solution is working for ios, Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants