New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter: listening callback not be called #19
Comments
Is it solved? I need a sample example in flutter using EventBus in different widget class (Other than main), that would be a great for flutter people. |
Reopening this because there seems to be an issue (also see #16), although I don't quite understand it yet. If someone could clarify, it would be great. |
@marcojakob My problem is that passing |
@marcojakob , Why is it opened if it is not clear that #16 has same issue than this? |
@JordyBaylac Do you also have an issue with event bus and flutter? |
@marcojakob can you give example? |
@marcojakob no I am not having any issue so far. |
No actually, i misunderstood flutter flow that's why i needed event-bus then, now we are just following simple pattern, event bus is needed for particular scenarios, at present we are not using it. Thanks for your support. |
I'll close this since the problem seems to not be the event bus but something else. |
I am also facing the same issue. I am also firing one event on message from Firebase. The listener is another screen which is pushed over the screen which is actually sending the event. Strange enough, if I send event from screen A to Screen B (screen B is a BottomNavigationBarItem) it works. But if screen B is another screen which is pushed onto screen A, it does not work. Above the author said it does not support Map data. But I am sending basic |
@uchiha-itachi95 Please check that you are using the same instance of your EventBus. |
@marcojakob I am facing the same issue with the latest version. The data is being intermittently gathered. I have a similar scenario: I have an event bus listener on page |
In my "HomePage"
initState
function, I place the following code for listening toNewOrderEvent
:These code works fine and in
main.dart
file, I invokeeventBus.fire(new NewOrderEvent("some data");
when my app receive message from Firebase Cloud Message, theeventBus.fire
function is indeed be invoked, but the listen callback function not be called.This is my "eventbus.dart" file content:
I print the
firing eventBus object
andlistening eventBus object
:They are indeed the same object.
BTW, the following are property and methods of the eventBus object:
The text was updated successfully, but these errors were encountered: