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
  • 175,842
  • 51
  • 533
  • 380
user2953680
  • 554
  • 1
  • 5
  • 16

0 Answers0