Build a RealTime Stats Monitor App Using Flutter and Firebase

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 35

  • @Salehalanazi-7
    @Salehalanazi-7 5 лет назад +6

    Bell activated. Pretty fucking cool

    • @FilledStacks
      @FilledStacks  5 лет назад +2

      Hell yeah!!! 🙏 much appreciated 🤜

  • @anant1489
    @anant1489 4 года назад

    Another great tutorial. Thank you.

  • @hammadpervez4568
    @hammadpervez4568 4 года назад

    as always. You are really cool man.

  • @HamzaAmin1
    @HamzaAmin1 3 года назад

    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.

    • @FilledStacks
      @FilledStacks  3 года назад

      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.

  • @VictorKun
    @VictorKun 5 лет назад +1

    You do it so effortlessly. Great man :)

    • @FilledStacks
      @FilledStacks  5 лет назад

      Thanks for always watching. Much appreciated 🙏

  • @shashanklk9179
    @shashanklk9179 3 года назад

    How to dispose the steam when you move another screen!? According to your code structure.

    • @FilledStacks
      @FilledStacks  3 года назад +1

      the viewmodel has a dispose function where you can cancel your subscription.

  • @davenash1547
    @davenash1547 5 лет назад

    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?

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      Thank you for watching. My second lets code shows how to pass a collection of documents to your models. The video after this one.

  • @pedrosanchezroca181
    @pedrosanchezroca181 5 лет назад

    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!

    • @FilledStacks
      @FilledStacks  5 лет назад +1

      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.

    • @pedrosanchezroca181
      @pedrosanchezroca181 5 лет назад

      Thanks for the clue!, I will have a closer look at my code based on your feedback!

  • @florianargaud4449
    @florianargaud4449 5 лет назад

    What exactly is app skeletons ? Cant create an account

    • @FilledStacks
      @FilledStacks  5 лет назад

      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?

    • @florianargaud4449
      @florianargaud4449 5 лет назад

      @@FilledStacks sounds cool ! I didnt get any email confirmation, even after trying to resend it. Weird.

    • @FilledStacks
      @FilledStacks  5 лет назад

      @@florianargaud4449 Mmmmm, that is weird. Send me your email privately let me check if it's in the authentication list.