flutter_swiper
flutter_swiper copied to clipboard
Animation doesnt work on builded release apk
The animations works fine during debug, but when I run "flutter build apk", they does not work anymore. Pagination works, but not the animations. EDIT: Animations only works with SwiperLayout.DEFAULT. STACK and TINDER only works during debug.
Confirm
Is this issue fixed?
This happened to me because of the value generated after init doesn't hold the value of swiper width immediately (due to lag I presume). Hence the function _getValue() doesn't work as it's intended (doesn't generate a dynamic value based on user scrolling/position).
Just for the record, I stripped my code of all the package dependencies for using the STACK layout.
I just tried the same and Its working for me even in the release build.
The swiper is as follows: Scaffold:Stack:Column:Padding:Swiper
And Swiper builds-ClipRect:Flex:Expanded,Expanded
Try this in the release apk , the animation works for me.
@prafgup can you share the code
Hey @Zoudafnan I don't have the code handy as of now but would suggest you to please have a look the widget tree structure I suggested here - https://github.com/best-flutter/flutter_swiper/issues/67#issuecomment-500311709