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

Performance is significantly slower than listview #4

Open
NewITCorp opened this issue Aug 17, 2018 · 4 comments
Open

Performance is significantly slower than listview #4

NewITCorp opened this issue Aug 17, 2018 · 4 comments

Comments

@NewITCorp
Copy link

NewITCorp commented Aug 17, 2018

Hi, thanks for a nice library.
it is really easy to use and makes my code very clean and short.
however I find it quite laggy during acroll for both side for records around 1000 and columns around 20, this symptom does not exist in listview.
Any suggestion please?

@toufikzitouni
Copy link
Owner

Hi @NewITCorp
Sorry for the super late reply. The reason that's the case is because I'm not recycling elements that are passed to the bidirectional scroll. I recommend trying out Slivers and see how well it performs :)

@sascha3212
Copy link

Is it possible to have recycling slivers and bidirectional scrolling?

@toufikzitouni
Copy link
Owner

Hey sascha3212 and NewITCorp! This might be a super late update but finally got around to finishing adding slivers :)

@percula
Copy link

percula commented Jul 14, 2020

@toufikzitouni Do you have an example with slivers? I am trying to add a SliverGrid as the child and am receiving an error "A RenderSliverFillRemainingWithScrollable expected a child of type RenderBox but received a child of
type RenderSliverGrid"

Here is my code:

BidirectionalScrollViewPlugin(
                            childHeight: height.toDouble(),
                              childWidth: width.toDouble(),
                            child: SliverGrid(
                              gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                                  crossAxisCount: garden.columns),
                              delegate: SliverChildBuilderDelegate(
                                (context, index) {
                                  return cells[index];
                                },
                                childCount: cells.length,
                              ),
                            ),
                          );

Note: cells[index] could just be a container or text.

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

4 participants