Hi there flutterfolks...
I'm trying to do something I imagined would be relatively simple.
I'm using a Swipeable Stack and I'm using images a series of images of hobbies like travel and boardgames and video games and dining out.
What I want to do is when the user swipes right store the name of the hobby and tag that as a like
Then, when these swipes left, I want store the name of the hobby and tag that as a dislike
And when these swipes up, I want to ignore it
I kind of thought this was the whole point of Swipeable Stacks, but whilst I can attach an action to the stack and I can fire events when I swipe left right and up, I can't find any way to extract where I currently am in the stack. so I can't find a way of referencing the page I'm on or even the index in fact when I look within the widgets in the action there's no reference to the Swipeable Stack?
I've named the pages as the hobbies... so ideally i just need to say "on swipe right, create a firebase entry in my likes table with the swiped page name as a string...
Any help would be super appreciated