Flutter Provider and ChangeNotifier With Listener for State Management | Example

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • We will learn how to use flutter provider and change notifier for state management and passing data. Previously we saw how to pass data using setState and callback. Flutter provider is important concept for Bloc and Cubit. It helps you to use Provider.of() to call method for changes and updating variable.
    See about setState and Callback here
    • Flutter setState() and...

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

  • @nathanielfrema
    @nathanielfrema 2 года назад +3

    Hello sir please can you make complete tutorial with project with provider like the way you did for getx in flutter.
    Please. Thank you

  • @funnynews341
    @funnynews341 2 года назад +1

    so Provider with Getx which is better for real production?

    • @dbestech
      @dbestech  2 года назад +4

      Hi, I like both. I have used both for production. Getx is easy to start with and help you build app faster. It's also very efficient. Saves time and money. With BLoc or Other state management pacakges, you can see the underline code. They helps you to really understand how flutter and dart work. They help you to understand the Flutter framework better. Getx is easy and fast and productive. And others let you see the flutter framework more. That's why I love both.

    • @parameshmamidisetti8167
      @parameshmamidisetti8167 2 года назад

      Great answer

  • @althafaralijaffarali1803
    @althafaralijaffarali1803 2 года назад +1

    And for multiple provider use multiprovider:
    MultiProvider( providers:[ Provider(create: (_) => Something()), Provider(create: (_) => SomethingElse()), Provider(create: (_) => AnotherThing()), ], child: someWidget, )

    • @dbestech
      @dbestech  2 года назад +2

      Thank you althafar Ali. Yes, we could do that as well for a bit complex app.

    • @althafaralijaffarali1803
      @althafaralijaffarali1803 2 года назад

      @@dbestech Bro thank you as well for your contribution ✨

    • @dbestech
      @dbestech  2 года назад +1

      @@althafaralijaffarali1803 You are welcome

  • @ahmedali-vq7yu
    @ahmedali-vq7yu Год назад

    How I can solve problem black Screan in flutter when use provider

    • @dbestech
      @dbestech  Год назад

      Not sure what you are talking about

  • @muhendisbey7608
    @muhendisbey7608 Год назад

    i watching from turkey, you are best. I am learning flutter with you.

  • @ramimaro4940
    @ramimaro4940 2 года назад +1

    As always you are the best :)

  • @hasan-gp2ne
    @hasan-gp2ne 2 года назад

    Selamin aleküm Bruder
    what is the difference between provider and stremprovider
    thanks.

    • @praiseodeyemi3629
      @praiseodeyemi3629 2 года назад

      Stream provide comes with way better features. Came across it while watching some videos on Riverpod for state management.

    • @praiseodeyemi3629
      @praiseodeyemi3629 2 года назад

      *StreamProvider

  • @huzaifazebmirza8755
    @huzaifazebmirza8755 11 месяцев назад

    Walikum Asalam Ya Akhi

  • @YoUCeF-kh9mn
    @YoUCeF-kh9mn 2 года назад

    Hi teacher Thank u so much

    • @dbestech
      @dbestech  2 года назад +1

      You are very welcome

  • @iyasuo
    @iyasuo 2 года назад

    Thank you bro

    • @dbestech
      @dbestech  2 года назад

      You are welcome. Have you learned something? Ya Suo

  • @haroonahmad4483
    @haroonahmad4483 Год назад

    its very confusing topic

  • @Bullets-o8b
    @Bullets-o8b 2 года назад

    hi

    • @dbestech
      @dbestech  2 года назад

      Hi korean friend, thanks for watching.