GeniusVentures / GeniusWallet

MIT License
9 stars 2 forks source link

State faulty in some screens #22

Open ivan-015 opened 1 year ago

ivan-015 commented 1 year ago

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:

image

This causes errors in the following situations:

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.