0

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?

CopsOnRoad
  • 237,138
  • 77
  • 654
  • 440
user2953680
  • 564
  • 1
  • 5
  • 16

0 Answers0