constructor and build it when it changes?
I also think using hooks is not working for me in this case. If it were a StatefulWidget, I could easily access it through a GlobalKey and call any method I want.
Seems like a complicated way to do a simple thing. PinIndicatorWidget is only for display, stateless and "dumb", use SM in the parent, whatever you want and pass the value and the onSubmit function via constructor
Alrighty ... The pinIndicatorWidget has complex animation in it . Thats is why i wanted to 3xtract it to its own . So as you said ill use statenotifier or something to manage that . Oor maybe creating its own Controller . Thanks tho 👍
Обсуждают сегодня