I have a Tinderlike card deck. I'm trying to get the front card of the deck from outside the Tinderlike widget (Stateful
).
When I try to expose his state using controlling state from outside of a StatefulWidget
I always get a null
. My TinderLike widget is inside a StatelessWidget
.
Is there a better way to expose data from a StatefulWidget
to its parents?