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.
Read moreHow do you pass parameters to widgets in flutter?
Navigate to the widget.
Read moreHow do you pass a function with parameters in flutter?
Dart: How to pass a function into a function (using a Function as a method parameter)
Read more