Hello,
I'm building an app which has a dynamic initial route.
The first time the user connects, I save its information into the device. That information must be displayed at the Login screen every time. It's is name, phone number, country code, country dial code.
I check whether that information exists in the main.dart and then I decide the open the Login screen or the Welcome screen.
As that information should be displayed in the Login screen, I wanted to pass them as arguments but when I didn't find a way to pass arguments to the initial route.
Also, when the user signs out, it's redirected at the Login screen and its information should still be displayed. Sending arguments when routing it's not a problem but how to get the routing arguments into the initState because most of those arguments should be use into the initState for example for TextEditController.text.
How could I do that, please ?