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

"primary" parameter doesn't work #201

Open
Julian-Webb opened this issue Feb 8, 2024 · 0 comments
Open

"primary" parameter doesn't work #201

Julian-Webb opened this issue Feb 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Julian-Webb
Copy link

Describe the bug
When you use the primary flag, which should tell the GroupedListView to use the PrimaryScrollController, you get the following error:
image

This happens even when you don't specify your own ScrollController. I think this happens because on line 245 in your source code you assign _controller = widget.controller ?? ScrollController(); but instead of creating a new ScrollController, you would need to access the PrimaryScrollController.of(context)

Expected behavior
The GroupedListView should use the PrimaryScrollController when primary: true.

Information:

  • Dart version: 3.2.0
  • Flutter version: 3.16.0
  • Platform: macOS Sonoma 14.2.1 / iPhone 15 emulator
  • Package version: grouped_list: ^5.1.2
@Julian-Webb Julian-Webb added the bug Something isn't working label Feb 8, 2024
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

No branches or pull requests

2 participants