Closed ashoksisara closed 1 year ago
Hey @ashoksisara , I tested this feature with images and it seems to work fine for me, would be great if you can share the implementation for news.getImageFromArticle()
function.
I encountered similar issues. I think the main problem is that your CustomNetworkImage
is a stateful widget or it involves some animation. Every time you swipe the card, a "re-initialization" of the widget inside the card (in this case NewsCard
) occurs, causing CustomNetworkImage
to initialize again. So it's initState()
and all sorts of animation runs again.
Use a Key with StatefulWidget
Widget build(BuildContext context) { return Example(key: UniqueKey()); }
https://user-images.githubusercontent.com/48236083/221361379-2fdac9d1-9b86-4fa5-aa46-cd4f24d553d0.mp4
Please help me out to solve this problem
Thanks in advance