flutter_tindercard icon indicating copy to clipboard operation
flutter_tindercard copied to clipboard

Strange Glitch When Using Keys On SwipeStack()

Open kharithomas opened this issue 5 years ago • 0 comments

Currently when adding keys to the SwipeStack or its children it results in a weird flashing that occurs after each card is swiped. I suspect the issue coming from the build method rebuilding the widget tree after each call and updating the old card's value causing a visual delay. I opened a Stack Overflow issue about this as well.

Gyfcat link to see the flashing: https://gfycat.com/jampackedvapiddinosaur

Stack Overflow Link: https://stackoverflow.com/questions/64530700/flutter-futureprovider-value-not-updating-in-builder-method

Also: Currently the package doesn't support adding keys on the individual SwiperItem like the ListView and GridView widgets to uniquely identify each Card; this would be a very useful feature.

kharithomas avatar Oct 27 '20 14:10 kharithomas