BLoC Pattern with Flutter || State Management

Поділитися
Вставка
  • Опубліковано 10 лют 2025

КОМЕНТАРІ • 284

  • @CodeXdev
    @CodeXdev  4 роки тому +41

    I hope you people understood the basic concept, in upcoming video for BLoC I am going to cover some more details like:
    1. Closing Stream 🔚
    2. Single Subscription and Broadcasting 📣🔔
    3. Passing parameter to Sink ➡️ and
    4. Different states of StreamBuilder 🎯

    • @faheemahmad3957
      @faheemahmad3957 Рік тому

      brother its no longer useful! please remake a new cubit tutorial and make it best and easy

  • @MUZIXABA
    @MUZIXABA 4 роки тому +81

    I've watched a lot of BLoC tutorials that left me confused. This is the first one that makes sense. Those iPad visualizations helped out a lot. Thanks

  • @SuperAnkursaini
    @SuperAnkursaini 4 роки тому +8

    After watching more than 20 vedios i came here. You are just out of the world. great work man:)

  • @juliusguevarra3729
    @juliusguevarra3729 3 роки тому +6

    Out of all the videos I've watched, this is the only video that made it all clear for me. Very well explained! Thank you! 🙏🏻

  • @s0mbres
    @s0mbres 2 роки тому +1

    This is easily the best BLoC pattern tutorial for Flutter I've seen, and I've seen a lot of them.

  • @on1235
    @on1235 3 роки тому +3

    Best Bloc Tutorial i watched so far! You make it look less complicated especially when using the Ipad.

  • @hoangtri9569
    @hoangtri9569 3 роки тому +1

    I'm searching for more than 10 videos, this video is the best of them, great work!

    • @CodeXdev
      @CodeXdev  3 роки тому

      Glad you liked it!

  • @lanceolana8277
    @lanceolana8277 2 роки тому

    I've watched so many Bloc toturial here in youtube but youre toturial is the best! Thumbs up :)

  • @mohammedammarkurabi7520
    @mohammedammarkurabi7520 4 роки тому +4

    Great effort... I love you explanation man.
    I did your example step by step and at the end converted the state full widget to stateless widget and every things works just fine.
    You are awesome instructor.

  • @DilwarHossainNoorChandan
    @DilwarHossainNoorChandan 4 роки тому +2

    At last I am clear about BLoC. Love you man.

    • @CodeXdev
      @CodeXdev  4 роки тому

      Thank you @Dilwar Hossain

  • @JohanLibert-k9g
    @JohanLibert-k9g Рік тому

    Man thanks , i've seen many bloc tutorials i didn't get it but ur explanation made so simple and easy

  • @salahuddinshaikh7847
    @salahuddinshaikh7847 3 роки тому +6

    Very clear explanation. Best Explanation out of ALL explanations I have listened to or read. BTW it was really nice to use a simple example and not a complex one. Bcoz of the example you took it became really clear. And the diagrams were really helpful.

  • @saqib399
    @saqib399 2 роки тому

    Great Explanation. I was afraid of learning bloc. But your video gave me a good understanding of it. God bless you

  • @hk20092009able
    @hk20092009able 2 роки тому

    Really the first video. Enjoy and understand the bloذ. Thank you for this most wonderful explanation

  • @عبدالقادرعبدالرحمنعبدالله

    This is the simplest way of understanding such great concept. thank you.

  • @lunaRdeltaY
    @lunaRdeltaY 2 роки тому

    that visual really helps alot, it is straight forward and clear enough to be understood, please make more tutorial using this way, really appreciated, thx sir

  • @higorgustavobarbosadasilva9624
    @higorgustavobarbosadasilva9624 3 роки тому

    this was for me the key that was unfound in my mind. Thanks a lot for your life!!! I'm from Brazil.

    • @CodeXdev
      @CodeXdev  3 роки тому

      You are so welcome!

  • @dengbeny
    @dengbeny 3 роки тому

    Thank you. I have been struggling with BloC for a while but now is clear.

    • @CodeXdev
      @CodeXdev  3 роки тому

      Good to hear that. 😍

  • @anasyousuf485
    @anasyousuf485 2 роки тому

    It's a very good approach that you didn't just directly jumped to an advance example, even the basic example gets complex/advance for any new concept and people need to understand this. Thumbs up 👍

  • @kkatad
    @kkatad 4 роки тому +5

    I watched lot's of tutorial but this one clear by bloc pattern concept. Thank you so much doing this useful tutorial.

  • @habuwet
    @habuwet 2 роки тому

    This is the best explanation i have ever watched from many different people videos. Thank you, I will subscribe your channel !! 🔥 🔥

  • @097Roger
    @097Roger Місяць тому

    iPad visualization ON POINT!
    thank youuuu 🙏

  • @keanallen
    @keanallen 2 роки тому

    Nice explanation Afzal! Im from GetX, and now I wanted to learn BLoC. This video helps me to get started. Thank you so much!

  • @aaBeben
    @aaBeben 3 роки тому

    U r so comprehensive. Glad be here to learn more.

    • @CodeXdev
      @CodeXdev  3 роки тому

      Thanks and welcome

  • @cjt5570
    @cjt5570 3 роки тому

    I've watched so many BLoC tutorials from US to China but was still struggling to understand it. And this video explained so well that I finally get the concept of BLoC. Thank you so much.
    Say no more. Subscribed. 😃
    ps: Thank you sir you saved me a lot of time, and I am gonna spend some of my time to watch the Ads on your videos. Hope that helps😊

    • @CodeXdev
      @CodeXdev  3 роки тому

      Thank you so much for the lovely feedback 🥰

  • @theradioactivemonkey
    @theradioactivemonkey 3 роки тому

    Thank you for this video. BLoC in Flutter finally makes sense :-)

  • @d.developer
    @d.developer 3 роки тому

    First time on you channel and I didn't get disappointment. Now i'm subscribed.

    • @CodeXdev
      @CodeXdev  3 роки тому

      Most welcome 😍 Hope you get value in return

  • @muhammaddawood4786
    @muhammaddawood4786 2 роки тому

    Bro you own my subscription by this video, good job 👍

  • @jakubpatrik2326
    @jakubpatrik2326 4 роки тому +3

    great, short and understandable tutorial on bloc pattern. I am finally able to explain it further to my friends. :)

  • @poisonels8023
    @poisonels8023 4 роки тому +2

    Thanks very much. More Flutter video please

  • @RanaAhmed-gr4ub
    @RanaAhmed-gr4ub 3 роки тому +1

    clear explanation of Bloc.Thank you brother

  • @laxmankumar433
    @laxmankumar433 3 роки тому

    You are Amazing Man! I bow for you. Thanks for the great explanation.

  • @DebugWithAdam
    @DebugWithAdam 4 роки тому

    U just made this concept more clearer to understand, Good work. Thank you

    • @CodeXdev
      @CodeXdev  4 роки тому

      Glad it was helpful!

  • @desdrianton5993
    @desdrianton5993 3 роки тому

    I've watched so many bloc tutorial.. this is the simplest one... good job 👍

  • @MuhammadFaisal-ey5fr
    @MuhammadFaisal-ey5fr 2 роки тому

    Thanks for the clear and simple explanation! Keep this style of yours in explaining complex things..
    im auto subscribing!

  • @abanahmed4683
    @abanahmed4683 4 роки тому +1

    The most super clear explanation

    • @CodeXdev
      @CodeXdev  4 роки тому +1

      Glad to hear that!

  • @swayamshreemohantyvlogs8126
    @swayamshreemohantyvlogs8126 3 роки тому

    Thnaks for this simplest explanation of BLoC pattern.

  • @nextebiz6897
    @nextebiz6897 3 роки тому +1

    great video, love from Islamabad, Pakistan.

  • @hardiksinhjivansia1244
    @hardiksinhjivansia1244 4 роки тому

    I don't usually comment but
    After trying many videos this is the best video I have come accross.
    Great explanation ( kudos for visual explanation on ipad )

  • @Kerol-review
    @Kerol-review 3 роки тому

    Thank you very much for the explanation, very clear and easy to understand, one of the best channel so far

  • @marco_di
    @marco_di 4 роки тому +1

    The best BLoC tutorial ever :-) I'm looking forward for your next lessons :-)

  • @praveenhamal
    @praveenhamal Рік тому

    subscribed just for explaining bloc the simplest way ..keep making similar contents

  • @Ash-td4sx
    @Ash-td4sx 3 роки тому

    Best explanation for BLoC must say!!

  • @saravanan925
    @saravanan925 3 роки тому

    has become a fan of your way of teaching!!! ❤️

  • @olishiz
    @olishiz 4 роки тому

    You definitely has the most aesthetic handwriting on your iPad lol. And I love how you explain it fully till the end to deliver your message. Subscribed to you. Thanks! Had trouble understanding BLOC and state management for mobile apps haha

    • @CodeXdev
      @CodeXdev  4 роки тому

      Thank you so much 😀 iPad idea really worked out for many. I think i should do more explanation videos using iPad 👨🏻‍💻📲

  • @SIDDARTHBHURA
    @SIDDARTHBHURA 4 роки тому

    By Far the best explanation on Bloc Pattern. Thank you .

    • @CodeXdev
      @CodeXdev  4 роки тому

      You're very welcome!

  • @siddheshsonawane3849
    @siddheshsonawane3849 3 роки тому

    best video on BloC state management

  • @anmolkumarshah
    @anmolkumarshah 4 роки тому +3

    he really taught this complex topic well
    i was struggling to understand this

  • @walidwazini7628
    @walidwazini7628 3 роки тому

    Great video, great audio clarity.

  • @himanshukesharwani5333
    @himanshukesharwani5333 3 роки тому

    One of the best explanation of Bloc

  • @battleGroundAce832
    @battleGroundAce832 4 роки тому

    Thankyou so much for clearing the concept of bloc. Really so much helpful to me.

  • @supun_sandaruwan
    @supun_sandaruwan 2 роки тому

    Those iPad visualizations helped out a lot. Please do explanation like that in future videos. Great sir 🔥♥

    • @CodeXdev
      @CodeXdev  2 роки тому +1

      Thanks, will do!

  • @sodiqeniola474
    @sodiqeniola474 2 роки тому

    Simply great. Thanks for this, Afzal.

    • @CodeXdev
      @CodeXdev  2 роки тому

      Most welcome, hope you have subscribed ☺️

  • @autumnuniverse1940
    @autumnuniverse1940 2 роки тому

    You’ve explained BLoC pattern perfectly

  • @venkatareddykunduru1828
    @venkatareddykunduru1828 3 роки тому +1

    Really great explanation what a man are you

  • @shubhamnaik1982
    @shubhamnaik1982 4 роки тому +1

    Nice Explaination, Thanks

  • @stefanomilani9553
    @stefanomilani9553 2 роки тому

    Great explanation, many compliments

  • @aqibali1909
    @aqibali1909 2 роки тому

    Thank you sir for making this so easy to understand

  • @seetheworld3839
    @seetheworld3839 11 місяців тому

    Damn! That was some really well explained explanation❤

  • @developermaniax
    @developermaniax 2 роки тому

    Thank you for this awesome video you saved my day! 🍻

  • @pravinromano8774
    @pravinromano8774 3 роки тому

    Thank you so much brother for such a wonderful tutorial thank you so much

  • @eyobedet5144
    @eyobedet5144 3 роки тому +1

    Now I got it, thanks alot.

    • @CodeXdev
      @CodeXdev  3 роки тому +1

      👍🏼👍🏼 kudos

  • @perilousgourd360
    @perilousgourd360 4 роки тому

    The code at 10:00 looks a bit fishy, but I'm new to this, so may misunderstand. ------------- EDIT: NEVERMIND BC 18:18 -------------
    I would expect that that the first argument for the Text widget should be snapshot.data.toString(), to use the _counter data arriving from the stream. I speculate that this example only works because the updating of the local _counter variable coincides with the entry of data into the stream, with StreamBuilder rebuilding the Text widget every time _counter is incremented (carrying the unused-as-written new _counter data), so that using local variable $_counter directly results in indistinguishable, but conceptually incorrect and unlikely to generalize well, behaviour.
    Happy to be corrected.
    This is my favourite of the BLoC pattern tutorials I've watched so far, by the way. Thank you for creating it :D.

  • @kevinalbrecht5575
    @kevinalbrecht5575 4 роки тому

    Hi, nice video, good explainations, thought you forgot to talk about closing then I saw the part two. thanks dude

  • @RaselKhan-ds7nc
    @RaselKhan-ds7nc 4 роки тому +2

    Alhamdulillah. Now I am clear on BP
    Thank you bro

  • @gentlepeace-09
    @gentlepeace-09 3 роки тому

    Looking for the perfect explanation .. you very good

  • @mahendrank2567
    @mahendrank2567 3 роки тому

    thank you for your clear explanation

  • @noshingh521
    @noshingh521 4 роки тому +18

    I saw many videos from bloc pattern, but it’s the best explanation! Thanks. But I have some question.
    Are there any differences from flutter_bloc and bloc Api? And in some videos use another way in bloc class, override initial state and mapToEvent method. Which one is better? Using streamContoller like you explained or another way with using mapToEvent and initialState method in Block class?

  • @abhishekjain3383
    @abhishekjain3383 4 роки тому

    Thank you so much. First time I understand the bloc pattern perfectly.. 😍🙌

    • @CodeXdev
      @CodeXdev  4 роки тому

      You are welcome 😊

  • @backer_sid
    @backer_sid 4 роки тому

    Best bloc explanation ever....👍🏽

    • @CodeXdev
      @CodeXdev  4 роки тому

      Wow, thanks @Backer!

  • @ariuntsetsegmunhtulga3732
    @ariuntsetsegmunhtulga3732 3 роки тому

    Absolutely help me. Thank you so much

  • @freeyow4405
    @freeyow4405 2 роки тому

    Awesome explanation

  • @francescofreddi4374
    @francescofreddi4374 4 роки тому

    at min 9:20 more or less... for explain idea better (because i noticed that later on); is better to write: counterBloc.counterSink.add(0);
    So is very very clear to understand whats going on!! and why all process dont call another times build part!!!!!
    I didn't understand right away! For me is a core part of that lesson; that is many different from many more other lessons

  • @faisalmushtaq2287
    @faisalmushtaq2287 4 роки тому +1

    Best tutorial ever!!!!

  • @PasinduBroomer
    @PasinduBroomer 3 роки тому

    only tutorial i understood thanks alot man

    • @CodeXdev
      @CodeXdev  3 роки тому

      Seriously! What other tutorials you have seen ?

  • @chndraja
    @chndraja 4 роки тому +1

    Hey Afzal, thanks for this video.

  • @spark-games-uk
    @spark-games-uk 11 місяців тому

    Brilliant! Thanks mate! ❤

    • @CodeXdev
      @CodeXdev  11 місяців тому

      Glad you like it!

  • @Grovermol
    @Grovermol 4 роки тому +1

    Nice tutorial, thanks!, i'm already looking forward the next login bloc tutorial.

  • @abubakarmani
    @abubakarmani 4 роки тому +1

    good Job

  • @samyaahmed6972
    @samyaahmed6972 3 роки тому

    Excellent explanation! Both thumbs up. Thank you.

  • @ezalor9555
    @ezalor9555 3 роки тому

    Such a great explanation and video!!

  • @ahamedalvi1218
    @ahamedalvi1218 3 роки тому

    Bro you are awesome keep it up. Thank you

  • @hl-apps
    @hl-apps 3 роки тому

    Awesome video! everything make sense!

    • @CodeXdev
      @CodeXdev  3 роки тому

      Glad it was helpful!

  • @VijayAdhithyaramasamy
    @VijayAdhithyaramasamy 3 роки тому

    very nice video got it easily

  • @PaWLO1501
    @PaWLO1501 4 роки тому

    Very good way of sharing your knowledge !

  • @Nam-ug5jp
    @Nam-ug5jp 4 роки тому +1

    This is what i need. Thank you!

  • @adeelzahid9622
    @adeelzahid9622 4 роки тому

    very appreciated. You make it easier. ✌️👍

  • @MuhammadUmair001
    @MuhammadUmair001 3 роки тому

    very nice brother, May Allah swt bless you

  • @gunasekaranpalanisami6182
    @gunasekaranpalanisami6182 3 роки тому

    Nice with ipad explanations ...

  • @rodinsuniga5549
    @rodinsuniga5549 4 роки тому +3

    Very comprehensive tutorial video! The Ipad Illustration really helped a lot!
    Can you show or give advice on how should we structure our folders and files using BloC?
    thank you very much!

  • @trextyrans
    @trextyrans 3 роки тому

    Love it so much!!!...easy to understand explanations.

  • @buck-johnson
    @buck-johnson 3 роки тому

    Great video, I'm sorry I can only give thumbs up but once.

    • @CodeXdev
      @CodeXdev  3 роки тому

      You like and comment is much appreciated 👍🏼

  • @AshishKumar-dl2mc
    @AshishKumar-dl2mc 3 роки тому

    Great explanation 🙌

    • @CodeXdev
      @CodeXdev  3 роки тому

      Glad you think so!

  • @olehhromadskyi2532
    @olehhromadskyi2532 3 роки тому

    Thank you, very cool video

  • @tejasgalande4557
    @tejasgalande4557 2 роки тому

    you had explained well.

  • @edungdivinefavour6977
    @edungdivinefavour6977 3 роки тому

    Man i want to subscribe again and again

  • @hawkybae
    @hawkybae 4 роки тому +1

    Thanks for this! the iPad visualizations helped :) Subbed.

    • @CodeXdev
      @CodeXdev  4 роки тому

      Thanks for the sub!

  • @omkarkadam399
    @omkarkadam399 3 роки тому

    Superb!

  • @AhmadAli-mm5ff
    @AhmadAli-mm5ff 4 роки тому +2

    Just took membership.. Looking forward for great tutorials ahead! Thank you so much for your videos.🙏🏻

    • @CodeXdev
      @CodeXdev  4 роки тому +1

      Thank you so much 😊 Hope to see you in next Member-only LiveStream

  • @bivekvivek
    @bivekvivek 4 роки тому +1

    Good work bro 👍 quality is upto mark , u deserve more subs ❤️

    • @CodeXdev
      @CodeXdev  4 роки тому +1

      Thank you so much 😀