BLoC Pattern with Flutter || State Management

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • In this video I will explain how BLoC pattern works in detail. We are going to use in-built features of StreamController and achieve separation of Logic with UI.
    =============
    Support me on BUY ME A COFFEE
    www.buymeacoffee.com/afzalali15
    =============
    Join this channel to get access to perks:
    czcams.com/users/CodeXDevjoin
    Provider Tutorial:
    Flutter Provider Tutorial || Mistake that I made as beginner
    • Flutter Provider Tutor...
    #CodeX
    Facebook Page: / codexdevs
    Connect with me on social media:
    FB: / user.afzal
    Twitter: / afzalali15
    LinkedIn: / afzalali15

Komentáře • 284

  • @CodeXdev
    @CodeXdev  Před 3 lety +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 Před rokem

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

  • @MUZIXABA
    @MUZIXABA Před 3 lety +82

    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 Před 3 lety +8

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

  • @s0mbres
    @s0mbres Před 2 lety +1

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

  • @juliusguevarra3729
    @juliusguevarra3729 Před 3 lety +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! 🙏🏻

  • @anasyousuf485
    @anasyousuf485 Před 2 lety

    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 👍

  • @salahuddinshaikh7847
    @salahuddinshaikh7847 Před 3 lety +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.

  • @on1235
    @on1235 Před 2 lety +3

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

  • @lanceolana8277
    @lanceolana8277 Před 2 lety

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

  • @saqib399
    @saqib399 Před rokem

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

  • @user-ep1jm6gm6q
    @user-ep1jm6gm6q Před rokem

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

  • @jakubpatrik2326
    @jakubpatrik2326 Před 3 lety +4

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

  • @hoangtri9569
    @hoangtri9569 Před 3 lety +1

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

  • @theradioactivemonkey
    @theradioactivemonkey Před 2 lety

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

  • @DilwarHossainNoorChandan
    @DilwarHossainNoorChandan Před 3 lety +2

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

    • @CodeXdev
      @CodeXdev  Před 3 lety

      Thank you @Dilwar Hossain

  • @mohammedammarkurabi7520
    @mohammedammarkurabi7520 Před 3 lety +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.

  • @khairulazhar7593
    @khairulazhar7593 Před 2 lety

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

  • @dengbeny
    @dengbeny Před 3 lety

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

  • @lunaRdeltaY
    @lunaRdeltaY Před rokem

    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

  • @MuhammadFaisal-ey5fr
    @MuhammadFaisal-ey5fr Před rokem

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

  • @user-gu5ts5nx8r
    @user-gu5ts5nx8r Před rokem

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

  • @keanallen
    @keanallen Před 2 lety

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

  • @abanahmed4683
    @abanahmed4683 Před 3 lety +1

    The most super clear explanation

  • @laxmankumar433
    @laxmankumar433 Před 2 lety

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

  • @marco_di
    @marco_di Před 3 lety +1

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

  • @trextyrans
    @trextyrans Před 2 lety

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

  • @olishiz
    @olishiz Před 3 lety

    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  Před 3 lety

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

  • @Ash-td4sx
    @Ash-td4sx Před 2 lety

    Best explanation for BLoC must say!!

  • @battleGroundAce832
    @battleGroundAce832 Před 3 lety

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

  • @hk20092009able
    @hk20092009able Před rokem

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

  • @swayamshreemohantyvlogs8126

    Thnaks for this simplest explanation of BLoC pattern.

  • @saravanan925
    @saravanan925 Před 3 lety

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

  • @autumnuniverse1940
    @autumnuniverse1940 Před 2 lety

    You’ve explained BLoC pattern perfectly

  • @DebugWithAdam
    @DebugWithAdam Před 3 lety

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

  • @kkatad
    @kkatad Před 3 lety +5

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

  • @muhammaddawood4786
    @muhammaddawood4786 Před 2 lety

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

  • @habuwet
    @habuwet Před 2 lety

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

  • @desdrianton5993
    @desdrianton5993 Před 3 lety

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

  • @SIDDARTHBHURA
    @SIDDARTHBHURA Před 3 lety

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

  • @higorgustavobarbosadasilva9624

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

  • @abhishekjain3383
    @abhishekjain3383 Před 3 lety +1

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

  • @kevinalbrecht5575
    @kevinalbrecht5575 Před 3 lety

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

  • @siddheshsonawane3849
    @siddheshsonawane3849 Před 2 lety

    best video on BloC state management

  • @sodiqeniola474
    @sodiqeniola474 Před 2 lety

    Simply great. Thanks for this, Afzal.

    • @CodeXdev
      @CodeXdev  Před 2 lety

      Most welcome, hope you have subscribed ☺️

  • @faisalmushtaq2287
    @faisalmushtaq2287 Před 3 lety +1

    Best tutorial ever!!!!

  • @Grovermol
    @Grovermol Před 3 lety +1

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

  • @ezalor9555
    @ezalor9555 Před 2 lety

    Such a great explanation and video!!

  • @stefanomilani9553
    @stefanomilani9553 Před 2 lety

    Great explanation, many compliments

  • @venkatareddykunduru1828
    @venkatareddykunduru1828 Před 3 lety +1

    Really great explanation what a man are you

  • @cjt5570
    @cjt5570 Před 3 lety

    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  Před 3 lety

      Thank you so much for the lovely feedback 🥰

  • @walidwazini7628
    @walidwazini7628 Před 2 lety

    Great video, great audio clarity.

  • @nextebiz6897
    @nextebiz6897 Před 3 lety +1

    great video, love from Islamabad, Pakistan.

  • @himanshukesharwani5333

    One of the best explanation of Bloc

  • @hawkybae
    @hawkybae Před 3 lety +1

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

  • @hardiksinhjivansia1244

    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 )

  • @d.developer
    @d.developer Před 2 lety

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

    • @CodeXdev
      @CodeXdev  Před 2 lety

      Most welcome 😍 Hope you get value in return

  • @indomitabletr1834
    @indomitabletr1834 Před 3 lety

    Awsome, so clear theaching

  • @praveenhamal
    @praveenhamal Před 6 měsíci

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

  • @anmolkumarshah
    @anmolkumarshah Před 3 lety +3

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

  • @aaBeben
    @aaBeben Před 3 lety

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

  • @adeelzahid9622
    @adeelzahid9622 Před 3 lety

    very appreciated. You make it easier. ✌️👍

  • @hlapps
    @hlapps Před 2 lety

    Awesome video! everything make sense!

  • @developermaniax
    @developermaniax Před 2 lety

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

  • @poisonels8023
    @poisonels8023 Před 3 lety +2

    Thanks very much. More Flutter video please

  • @RanaAhmed-gr4ub
    @RanaAhmed-gr4ub Před 2 lety +1

    clear explanation of Bloc.Thank you brother

  • @seetheworld3839
    @seetheworld3839 Před 4 měsíci

    Damn! That was some really well explained explanation❤

  • @rodinsuniga5549
    @rodinsuniga5549 Před 3 lety +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!

  • @freeyow4405
    @freeyow4405 Před 2 lety

    Awesome explanation

  • @pranthonyaquino
    @pranthonyaquino Před 3 lety

    Excellent explanation, thanks!

  • @shubhamnaik1982
    @shubhamnaik1982 Před 3 lety +1

    Nice Explaination, Thanks

  • @ariuntsetsegmunhtulga3732

    Absolutely help me. Thank you so much

  • @samyaahmed6972
    @samyaahmed6972 Před 3 lety

    Excellent explanation! Both thumbs up. Thank you.

  • @muammar88
    @muammar88 Před 4 měsíci

    Brilliant! Thanks mate! ❤

  • @mahendrank2567
    @mahendrank2567 Před 3 lety

    thank you for your clear explanation

  • @Nam-ug5jp
    @Nam-ug5jp Před 3 lety +1

    This is what i need. Thank you!

  • @the_offroad_diaries
    @the_offroad_diaries Před 3 lety

    Thank you . Your Videos are always great.

  • @pravinromano8774
    @pravinromano8774 Před 2 lety

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

  • @teeratphoowaborwornphimkul3501

    Super Perfect this tutorial... Great Man !!!

  • @mohammedrizwan8123
    @mohammedrizwan8123 Před 3 lety

    Great explanation bro👍

  • @bivekvivek
    @bivekvivek Před 3 lety +1

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

  • @ahamedalvi1218
    @ahamedalvi1218 Před 2 lety

    Bro you are awesome keep it up. Thank you

  • @noshingh521
    @noshingh521 Před 3 lety +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?

  • @NishitGajjar
    @NishitGajjar Před 3 lety

    Looking for the perfect explanation .. you very good

  • @eyobedet5144
    @eyobedet5144 Před 3 lety +1

    Now I got it, thanks alot.

  • @omkarkadam399
    @omkarkadam399 Před 3 lety

    Superb!

  • @olehhromadskyi2532
    @olehhromadskyi2532 Před 3 lety

    Thank you, very cool video

  • @aqibali1909
    @aqibali1909 Před rokem

    Thank you sir for making this so easy to understand

  • @chndraja
    @chndraja Před 3 lety +1

    Hey Afzal, thanks for this video.

  • @VijayAdhithyaramasamy
    @VijayAdhithyaramasamy Před 2 lety

    very nice video got it easily

  • @GANESHS402
    @GANESHS402 Před 3 lety

    Good one! BLoC explained well. Got clear idea after long time :) Please do video on GetX and providers too

  • @azharbhatti4167
    @azharbhatti4167 Před 3 lety

    Well explained..

  • @hoggish
    @hoggish Před 3 lety

    One of the best explanation

  • @supun_sandaruwan
    @supun_sandaruwan Před rokem

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

  • @gunasekaranpalanisami6182

    Nice with ipad explanations ...

  • @voicheci007
    @voicheci007 Před 3 lety

    Excellent video, thanks

  • @codervlogs
    @codervlogs Před 3 lety

    great work

  • @backer_sid
    @backer_sid Před 3 lety

    Best bloc explanation ever....👍🏽

  • @PaWLO1501
    @PaWLO1501 Před 3 lety

    Very good way of sharing your knowledge !

  • @tejasgalande4557
    @tejasgalande4557 Před rokem

    you had explained well.

  • @AshishKumar-dl2mc
    @AshishKumar-dl2mc Před 3 lety

    Great explanation 🙌