Hello community. I'm working on a realtime parking app. The data is being sent to firebase realtime DB. The problem is when i try to fetch the data in anybutton i have to tap it to reflect it. As being realtime it has to constantly update without user involvement. I need help regarding this.
Listen to the stream for your real time data and call the function to rebuild your UI. If you're using stacked call notifyListeners. If you're using setState then call setState when the data comes back.
I love all your videos! Thank you for making them. I'm new to Flutter, and I'm having a hard time converting the above structure to take in a firestore collection rather than a single document. Will you be doing such a video soon? Or can you reply with some pointers?
i am using your example in a different project, but the structure, the models the viewModel is basically the same so, I encountered a problem with the dependency injection that I have not been able to figure out...for some reason the constructor of my HomeViewModel is called twice, messing up the state management...i have been able to solve it only by changing registerFactory by registerLazySingleton for the HomeViewModel on the service_locator then there is only one instance of the model...which makes sense i guess....any clue why this constructor is called twice when using the registerFactory method?. Thanks!
Depending on where you request your HomeViewModel it can cause that to happen. If you're requesting the Model in the build function of a statelessWidget it will be constructed on every build. If it's in the builder function of the stateful base widget it should only be constructed once. Other than that insight I won't be able to tell you unless I debug the code myself.
It's just a tool to generate a code base to start developing with. You can select your architecture, add your views and then generate the code to start working. What error are you getting?
Bell activated. Pretty fucking cool
Hell yeah!!! 🙏 much appreciated 🤜
Another great tutorial. Thank you.
Thank you and you're welcome :)
as always. You are really cool man.
Thanks man. Much appreciated.
Hello community. I'm working on a realtime parking app. The data is being sent to firebase realtime DB. The problem is when i try to fetch the data in anybutton i have to tap it to reflect it. As being realtime it has to constantly update without user involvement.
I need help regarding this.
Listen to the stream for your real time data and call the function to rebuild your UI. If you're using stacked call notifyListeners. If you're using setState then call setState when the data comes back.
You do it so effortlessly. Great man :)
Thanks for always watching. Much appreciated 🙏
How to dispose the steam when you move another screen!? According to your code structure.
the viewmodel has a dispose function where you can cancel your subscription.
I love all your videos! Thank you for making them. I'm new to Flutter, and I'm having a hard time converting the above structure to take in a firestore collection rather than a single document. Will you be doing such a video soon? Or can you reply with some pointers?
Thank you for watching. My second lets code shows how to pass a collection of documents to your models. The video after this one.
i am using your example in a different project, but the structure, the models the viewModel is basically the same so, I encountered a problem with the dependency injection that I have not been able to figure out...for some reason the constructor of my HomeViewModel is called twice, messing up the state management...i have been able to solve it only by changing registerFactory by registerLazySingleton for the HomeViewModel on the service_locator then there is only one instance of the model...which makes sense i guess....any clue why this constructor is called twice when using the registerFactory method?. Thanks!
Depending on where you request your HomeViewModel it can cause that to happen. If you're requesting the Model in the build function of a statelessWidget it will be constructed on every build. If it's in the builder function of the stateful base widget it should only be constructed once. Other than that insight I won't be able to tell you unless I debug the code myself.
Thanks for the clue!, I will have a closer look at my code based on your feedback!
What exactly is app skeletons ? Cant create an account
It's just a tool to generate a code base to start developing with. You can select your architecture, add your views and then generate the code to start working. What error are you getting?
@@FilledStacks sounds cool ! I didnt get any email confirmation, even after trying to resend it. Weird.
@@florianargaud4449 Mmmmm, that is weird. Send me your email privately let me check if it's in the authentication list.