Closed baranngungor closed 1 year ago
@baranngungor How did you solve this? I got this exact issue today after upgrading flutter
@Tameflame I couldn't solve but other persons from another platform said "this is not an issue with the carousel but with how heros and inheritedwidgets work together" and "you move your call to of(context) to outside of the hero, then the value should persist during the hero flight.". I couldn't undestand but i think it doesnt about this plugin and i closed. But i'll reopen because i couldn't solve my problem and i'm not alone on this issue.
@baranngungor I managed to fix it: ctrl+click on that carousel_slider.dart import statement to go into the package's source code, and then modify line 358 from PageStorage.of(storageContext) to PageStorage.maybeOf(storageContext)
Simple change and it works for me.
@Tameflame It didn't work for me.
Has any progress been made on this issue? Any new things to try?
@Tameflame It didn't work for me.
Any available work around or way to resolve the issue?
Just wrap the child of the Hero with PageStorage
@vanomak it worked for me thanks.
It was resolved when I wrapped the Image widget with the Hero Widget directly. When an error occurred, I wrapped the CarouselSlider Widget with the Hero Widget.
I'm getting error after upgrade Flutter 3.7.0. I'm using CarouselSlider With Hero Widget, it wasn't get error but now i see this error until Hero animation finish. My Code and error that i see: