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

No way to disable auto-scroll #10

Closed
lukepighetti opened this issue Jun 7, 2022 · 0 comments · Fixed by #11
Closed

No way to disable auto-scroll #10

lukepighetti opened this issue Jun 7, 2022 · 0 comments · Fixed by #11
Labels
bug Something isn't working

Comments

@lukepighetti
Copy link
Contributor

lukepighetti commented Jun 7, 2022

I am using this package in a fixed grid scenario, where NeverScrollablePhysics is being used. However, auto-scroll still appears to be active when it's expected to never scroll.

Screen.Recording.2022-06-07.at.8.14.31.AM.mov
return ReorderableGrid(
  gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
    crossAxisCount: widget.layout.crossAxisCount,
    childAspectRatio: widget.layout.childAspect,
    mainAxisSpacing: widget.layout.gap,
    crossAxisSpacing: widget.layout.gap,
  ),
  itemCount: 9,
  physics: const NeverScrollableScrollPhysics(),
  reverse: false,
  itemBuilder: (context, i) {
    return ReorderableGridDragStartListener(
      key: ValueKey(i),
      index: i,
      child: Container(
        color: Colors.red,
        child: Text(i.toString()),
      ),
    );
  },
  onReorder: (i, j) {
    print('from $i to $j');
  },
);
@casvanluijtelaar casvanluijtelaar added the bug Something isn't working label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants