FlutterFlow / flutterflow-ui

BSD 3-Clause "New" or "Revised" License
151 stars 62 forks source link

MasonryGridView not scrolling in an scrolling column #2

Open siddharthadevops opened 1 year ago

siddharthadevops commented 1 year ago

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.