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 issues #12

Open
lavanoped opened this issue Sep 3, 2018 · 4 comments
Open

Performance issues #12

lavanoped opened this issue Sep 3, 2018 · 4 comments

Comments

@lavanoped
Copy link

When I try to use Swiper, itemBuilder widgets of moderately complexity there is significant lagging.
The GPU thread is giving red bar throughout the swiping scroll and in the UI thread during the start of scroll in profiling mode. I think part of the reason is that each time I try to pan, all the widgets seem to re-rendering throughout the scrolling session. So it's like creating 'itemCount: 4' complex widget tree structure throughout the scrolling.

Is there a way to reduce the lag, My widgets are fairly well written. Is it possible to scrolling animation without rendering it throughout the scrolling action.

I'm using the STACK layout -> _CustomLayoutStateBase<_StackSwiper>

Regards,
Lavan

@jzoom
Copy link
Member

jzoom commented Sep 9, 2018

We're now searching for a better solution.May be use the rendering system of flutter instead of widgets tree.

@pjcau
Copy link

pjcau commented Jan 19, 2019

Hi guys,

do you have news of this issue? I found the same with app in iOS device and Android.

BR
J

@GooSync
Copy link

GooSync commented Feb 18, 2019

... itemBuilder widgets of moderately complexity there is significant lagging...
and itemBuilder calls many times for the same index. For what?

@vijayb95
Copy link

vijayb95 commented Jul 1, 2021

I have the same issue here, anybody got a fix?

Looks like i have to custom write swiper logic all over :(

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

5 participants