flutter_swiper
flutter_swiper copied to clipboard
Performance issues
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
We're now searching for a better solution.May be use the rendering system of flutter instead of widgets tree.
Hi guys,
do you have news of this issue? I found the same with app in iOS device and Android.
BR J
... itemBuilder widgets of moderately complexity there is significant lagging... and itemBuilder calls many times for the same index. For what?
I have the same issue here, anybody got a fix?
Looks like i have to custom write swiper logic all over :(