The-ring-io/flutter_phoenix

Allow accessing phoenix via (global) key

Closed this issue · 2 comments

In the case that a developer is building an app with redux state management, he/she may want to call phoenix from an action which does not have clear access to widget context. In this case, it may be useful to access it via global key.

I'm trying to call rebirth() from a message handler under flutter_driver, and similarly don't have access to a build context there

Will add a key parameter in the next version.