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.
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.