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

MasonryGridView not scrolling in an scrolling column #2

Open
siddharthadevops opened this issue Oct 24, 2022 · 0 comments
Open

MasonryGridView not scrolling in an scrolling column #2

siddharthadevops opened this issue Oct 24, 2022 · 0 comments

Comments

@siddharthadevops
Copy link

siddharthadevops commented Oct 24, 2022

When there is a MasonryGridView in a scrollable column the grid doesn't scroll. I suggest you wrap the SingleChildScrollView that contains the column in a PrimaryScrollController and provide the possibility of configuring the parameter primary :

PrimaryScrollController(
            controller: _scrollController,
            child: SingleChildScrollView(
              primary: true,

And then, somewhere below:

MasonryGridView.count(
                            primary: false,

This way the column containing the grid will scroll as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant