-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Scrolling issue with two SliverMasonryGrid in CustomScrollView #338
Comments
Hi, I can reproduce. It happens when there is something after a Column(
children: [
MasonryGridView(..),
Separator(...),
Expanded(
child: MasonryGridView(...),
),
],
); |
For the issue with the multi slivers, I'm not sure this is something simple to fix, at least not completely. The issue we have here is because of this part of the code: // We ran out of children before reaching the scroll offset.
// We must inform our parent that this sliver cannot fulfill
// its contract and that we need a scroll offset correction.
geometry = SliverGeometry(
scrollOffsetCorrection: -scrollOffset,
);
return; To fix this, I probably need to fix the condition in the enclosing I will need to think about it. I hope that my solution above can help you in the meantime. |
Thank you for quick response. Unfortunately your solution is not suiting for me as I want both these list with separator to be scrolled as one list and also above this I have two horizontal lists which I also want to be scrolled as one list with the masonry ones. I hope you will find good and easy solution. |
I don't know, but maybe this will be helpful for you. |
Hi, I think I fixed the issue, can you test on this branch to see if it's also ok for you: https://github.com/letsar/flutter_staggered_grid_view/tree/feature/masonry_cache ? |
Hi, I found some bug around sixth index on second list. I will show you it on video recording as it is hard to explain. Except that it is working really good. |
Thanks for trying this branch. I can try to pinpoint the issue, but if you have a reproducible code it would help me a lot. |
I created something like this for quick reproducible code, but in this case bug happening on last indexes when scrolling back, so kinda different than on video I posted before, maybe because there was more data? I hope this will be good. https://drive.google.com/file/d/1TP3QSUyVRsnrOXylbqKYJoFQfbJd82_1/view?usp=sharing
|
Any proggress/update? |
Hi, I can't reproduce with the above example. I'll try to find a layout which causes this, but it won't be easy |
Can you send me the actual size of the |
It's dynamic, when I scroll to the end of the list it's loading more from backend. Initially it's 15 elements. Here is how it looks, but there is a lot of different parameters that are hard to reproduce.
|
it also happened with any other sliver list. CustomScrollView{
// SliverMasonryGrid
SliverMasonryGrid.count() ,
// SliverList wrap with DecoratedSliver
DecoratedSliver(
SliverList.separated()
)
}
|
Facing the same issue when having 2 masonry grids in the same custom scroll view. The plugin is great otherwise, hoping for a fix. 😄 |
Having same issue 😞 |
i am also facing the same issue |
Facing same issue |
I saw it fixed in 0.8.0, is there any plan release new version ? |
But it show 0.8.0 is not matched . Is it released?
…On Mon, Dec 16, 2024, 11:08 AM dodatw ***@***.***> wrote:
I saw it fixed in 0.8.0, is there any plan release new version ?
—
Reply to this email directly, view it on GitHub
<#338 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BMT5Z4ZUGCBCLSG2WZOZ4A32FZU6XAVCNFSM6AAAAABDPOWWNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBUGY4DMMBZGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi,
I tried to implement
MasonryGridView
with separator between items.I used for this
CustomScrollView
and put twoSliverMasonryGrid.count
working on the same data inside separated by my custom divider.Unfortunately when scrolling through second
SliverMasonryGrid
scroll is coming back to top of the first list.As I tested this with
SliverGrid.count
and then it worked properly, this is looking like a bug to me.Issue mentioned #335 and here suggestion for creating a solution of what I wanted to achieve #337
and here is my code:
Any chance to fix this bug soon?
The text was updated successfully, but these errors were encountered: