
Flutter — How to call functions between stateful widgets?
A tutorial on how to use the provider package in Flutter.
Managing functions from provider will allow you to control functions from all pages.
If you change a variable you can call notifylistener() function inside your provider function. So that you can change state of widget.