To pass data to the stateful widget just pass parameters to the state using the constructor . You can easily access this parameter using the widget. yourPeram in your second stateful widget.
How do you pass parameters to a stateful widget?
To pass data to the stateful widget just pass parameters to the state using the constructor . You can easily access this parameter using the widget. yourPeram in your second stateful widget.