Closed appfrosch closed 1 year ago
I guess one approach would be to introduce another RoundedRect that fades in and flips, thus covering the original stack. Is this a valid approach do you think or is there any other way that I am not seeing?
Hi @appfrosch
First of all, thank you so much for sponsoring! 🙏
Can't you add a state property to the card view and use it to trigger a flip within the card view instead of flipping the deck?
Yep, if I introduce the flip state into the Card model, I can work with that–thanks. Not entirely there yet (the animation is not exactly what I am looking for yet) but I can see how it must go. I think I will make a small blogpost on this any time this week, thanks for pushing me into the right direction 🤗 Will leave this open to refer to the blogpost once I managed to create it.
Oh cool, just let me know when it's up and I'd be happy to share it! :)
I could also add flipping to the demo app if you think it could help others. I just don't have the time to do so right now.
Here's the link to my tutorial on this.
Wow, such a great read @appfrosch 🤩
Just a thought - wouldn't it be easier to create a separate card view and contain the flipped state within the view instead of adding it to the model? Also, if you think about it - the flipped state should probably be scoped to the view and not the model itself. I mean, what if you present the same item in two different stacks?
Just a thought :)
I'd llike to flip the frontmost deck item to show its backside–but instead the whole stack flips. Is there something I am missing?
Here's my code:
Also, here's a little video showing what's happening:
https://user-images.githubusercontent.com/91844195/217499165-7761e858-eba8-45b2-8b36-8f9867063908.mov