For advanced animation purpose, I need to get the current index (the index of the card currently on top).
I have found a workaround using a GlobalKey :
final _swiperKey = GlobalKey<State<AppinioSwiper>>();
int? get _currentGroupIndex => (_swiperKey.currentState as dynamic)?.currentIndex;
It actually works great, but it would be much better to have access to this currentIndex directly in the cardsBuilder callback ?
Or if you don't like that idea, at least to make the _AppinioSwiperState class public so I can remove the dynamic casting ?
For advanced animation purpose, I need to get the current index (the index of the card currently on top). I have found a workaround using a GlobalKey :
It actually works great, but it would be much better to have access to this currentIndex directly in the
cardsBuilder
callback ? Or if you don't like that idea, at least to make the_AppinioSwiperState
class public so I can remove the dynamic casting ?