flutter_swiper icon indicating copy to clipboard operation
flutter_swiper copied to clipboard

Performance issues

Open lavanoped opened this issue 6 years ago • 4 comments

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

lavanoped avatar Sep 03 '18 07:09 lavanoped

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

jzoom avatar Sep 09 '18 10:09 jzoom

Hi guys,

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

BR J

pjcau avatar Jan 19 '19 13:01 pjcau

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

GooSync avatar Feb 18 '19 14:02 GooSync

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

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

vijayb95 avatar Jul 01 '21 09:07 vijayb95