Closed lyquocnam closed 6 years ago
I think it is a problem with dependency injection. You might get two separate instances of EventBus
from the injector (one for _BaseState
and one for _State
). Make sure that there is only one EventBus
.
@marcojakob you are right, the problem is injector, it work fine in normal. thanks for help author
create eventbus:
i have
base class
like this:and fire event in child class:
please see this case in demo project here: https://github.com/lyquocnam/flutter-event
ps: if listen event on child class, it's ok.