Some screens read their Bloc or Cubit through the extra property of the router. For example, this is how the /send route takes in its cubit:
This causes errors in the following situations:
Hot reload
Hot restart
Entering the URL of /send manually in web
This happens because the Bloc disappears and can no longer be read because its caller does not send the parameter.
The goal of this issue is to allow every single permitted route to be independent of other screens. In other words, /send should be able to try and read from flutter_secure_storage somehow and display the necessary information if successful.
Some screens read their Bloc or Cubit through the
extra
property of the router. For example, this is how the/send
route takes in its cubit:This causes errors in the following situations:
/send
manually in webThis happens because the Bloc disappears and can no longer be read because its caller does not send the parameter.
The goal of this issue is to allow every single permitted route to be independent of other screens. In other words,
/send
should be able to try and read fromflutter_secure_storage
somehow and display the necessary information if successful.