flutter_swiper icon indicating copy to clipboard operation
flutter_swiper copied to clipboard

Animation doesnt work on builded release apk

Open nildomacena opened this issue 5 years ago • 6 comments

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.

nildomacena avatar Mar 22 '19 11:03 nildomacena

Confirm

Shakle avatar Apr 13 '19 19:04 Shakle

Is this issue fixed?

prafgup avatar Jun 09 '19 16:06 prafgup

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.

lavanoped avatar Jun 10 '19 06:06 lavanoped

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 avatar Jun 10 '19 06:06 prafgup

@prafgup can you share the code

Zoudafnan avatar May 25 '23 11:05 Zoudafnan

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

prafgup avatar May 25 '23 13:05 prafgup