BLoC Pattern with Flutter || State Management

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

Комментарии • 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 3 года назад +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

  • @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 2 года назад +3

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

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

      Wow, thanks! 😀

  • @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 3 года назад +2

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

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

      Thank you @Dilwar Hossain

  • @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?

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

    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

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

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

  • @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 🥰

  • @SuperAnkursaini
    @SuperAnkursaini 3 года назад +8

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

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

    best video on BloC state management

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

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

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

    You’ve explained BLoC pattern perfectly

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

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

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

    Great video, great audio clarity.

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

    Thank you sir for making this so easy to understand

  • @MuhammadFaisal-ey5fr
    @MuhammadFaisal-ey5fr Год назад

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

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

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

  • @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.

  • @Ash-td4sx
    @Ash-td4sx 3 года назад

    Best explanation for BLoC must say!!

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

    Now I got it, thanks alot.

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

      👍🏼👍🏼 kudos

  • @seetheworld3839
    @seetheworld3839 6 месяцев назад

    Damn! That was some really well explained explanation❤

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

    thank you for your clear explanation

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

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

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

      You are welcome 😊

  • @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! 🙏🏻

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

      Great to hear!

  • @Grovermol
    @Grovermol 4 года назад +1

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

  • @bivekvivek
    @bivekvivek 4 года назад +1

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

    • @CodeXdev
      @CodeXdev  4 года назад +1

      Thank you so much 😀

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

    very appreciated. You make it easier. ✌️👍

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

    sir super sir perfect explanation
    in the same way you should do full flutter course

  • @Nam-ug5jp
    @Nam-ug5jp 3 года назад +1

    This is what i need. Thank you!

  • @abubakarmani
    @abubakarmani 4 года назад +1

    good Job

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

    Such a great explanation and video!!

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

    very nice video got it easily

  • @muammar88
    @muammar88 7 месяцев назад

    Brilliant! Thanks mate! ❤

    • @CodeXdev
      @CodeXdev  7 месяцев назад

      Glad you like it!

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

    Thank you . Your Videos are always great.

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

      Glad you like them!

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

    Thank you, very cool video

  • @buck-johnson
    @buck-johnson 2 года назад

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

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

      You like and comment is much appreciated 👍🏼

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

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

  • @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!

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

    Amazing explanation.. keep going ❤️❤️❤️

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

      Thank you.. with support from you guys, soon we will reach 20k subscribers club🎉🎉

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

    You didn't use bloc library in this counter app example so It means we means we don't need bloc library?

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

    good effort bro
    luv from Pakistan.

  • @BrYarDJ
    @BrYarDJ 4 года назад +1

    nice tutorial, good work bro.

    • @CodeXdev
      @CodeXdev  4 года назад +1

      Many many thanks

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

      @@CodeXdev bro i hop create tutorial about flare like this for dark mod and light mode see this its very nice in here
      rive.app/a/alidhasanakash/files/flare/page-transition/preview

  • @anmolkumarshah
    @anmolkumarshah 3 года назад +3

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

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

    Why at first the data is null, how to get the default data from the bloc class?

  • @farhanahmad-bv1mx
    @farhanahmad-bv1mx 2 года назад

    Wonderful

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

    Thanks very much. More Flutter video please

    • @CodeXdev
      @CodeXdev  4 года назад +1

      I am on it 😊

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

    Thank you!

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

    great video, love from Islamabad, Pakistan.

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

    Next video must be awesome. This is also a nice explanation 🥰🥰🥰😍

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

    Great explanation bro👍

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

    great work

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

      Thank you! Cheers!

  • @rounaktadvi4950
    @rounaktadvi4950 4 года назад +1

    How to implement phone auth(Firebase) in flutter using bloc state management?

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

    Thanks for the video..

  • @AhmadAli-mm5ff
    @AhmadAli-mm5ff 4 года назад +1

    Nice tutorial.

  • @jakubpatrik2326
    @jakubpatrik2326 4 года назад +3

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

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

    Nice Explaination, Thanks

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

    Nice explanation bro

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

    Thk you master.

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

    omg are you gonna like and comment for every comment in here. what a kindness.
    anyway, i just wanna say thankyou.

  • @krishnaSharma-uq2ne
    @krishnaSharma-uq2ne 4 года назад +1

    Sir please give us tutorial how to make file sharing app based on P2P connection with dart🙏🙏🙏🙏🙏

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

    Hi codex. Thank you. I understood very well. 5 stars. I want to know is there any big changes happens in bloc which affects its code pattern or style??

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

      Not a big change, but yes its adopting Cubit which has slight different code..

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

      @@CodeXdev oh ok I will check it. Thank you for the information :)

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

    Well done and awesome work to explaining how "bloc" works, thank you a lot.

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

    finally understand, thanks

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

      Great to hear that 😎

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

    good video, but the transitions between computer and ipad was annoying together with the lowering of volume.

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

    Very good lesson, thank you, but I don't understand one thing: when you put in enum Increment, Decrement and Reset, how you do this? Because when I do the same, the program don't show me this classes, in green color, it has blue color like parameters.

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

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

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

    For Insertion using http by Bloc architecture what should we do? i think we don't need stream and sink. am i rite >? Please any one.

  • @FarmanUllahYousafzai485
    @FarmanUllahYousafzai485 4 года назад +1

    thanks a lot

  • @RanaAhmed-gr4ub
    @RanaAhmed-gr4ub 2 года назад +1

    clear explanation of Bloc.Thank you brother

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

    Awesome!

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

      Thank you! Cheers!

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

    I have a suggestion , don't switch between iPad and coding constantly , because its makes focus shift and I cannot focus

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

    ngl, to me it's a better explanation than the one from Hitesh xD no hard feelings, just my personal opinion

  • @user-mb7qe6ro9m
    @user-mb7qe6ro9m 4 года назад +1

    finally I understood it, thanks so much man. just a suggestion, remove dos transitions it break the flow.

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

      I m glad it helped you. Regarding transitions, I already got many suggestions 🤓

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

    Thanks Bro.

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

    The most super clear explanation

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

      Glad to hear that!

  • @Nick-xp9gu
    @Nick-xp9gu 3 года назад

    Whoever disliked this video should go for a brain surgery, this is the best Bloc tutorial so far

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

    @CodeX what to do in case of view model?

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

      Didn't get your question.. Its using the VM pattern only!

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

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

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

    Thnaks for this simplest explanation of BLoC pattern.

  • @v.c.s99
    @v.c.s99 2 года назад

    in api qeary parameters change in api how make this code

  • @kkatad
    @kkatad 3 года назад +5

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

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

    Hi...when i am trying to use snapshot.data in text box..it showing me 'CounterAction.Increment' like this then i took the reference of the class to get the variable like bloc.counter..and it showing the value...is it right practice or any other method to get the value

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

      Didn't get exactly... but anything which is not causing repetitive call is fine :)

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

    I don't like the bloc library I like this approach.

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

    How To Integrate tappx ad SDK in flutter?

  • @mohdraghib2769
    @mohdraghib2769 7 месяцев назад

    Please make tutorial on Riverpod as well.
    Thanks

  • @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!

  • @gentlepeace-09
    @gentlepeace-09 3 года назад

    Looking for the perfect explanation .. you very good

  • @nagaraj-ni2cj
    @nagaraj-ni2cj 2 года назад

    error appeared in CounterBloc(event)
    could you please help

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

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

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

    Really great explanation what a man are you

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

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

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

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

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

    Hello, I got the concept but I have a scenario that I am facing a problem implementing that. I have one password field along with an eye icon and on click of the icon, the password field is shown. So basically there are two events. one is password changing and the other is password visible or not visible so how to accomplish this any help.

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

      You can have two different streams for password and eye button,
      * once the show event triggers -> hide eye button & make password visible
      * once the hide event triggers -> show eye button & make password hidden

  • @praveenhamal
    @praveenhamal 8 месяцев назад

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

    • @CodeXdev
      @CodeXdev  8 месяцев назад

      Thanks for the sub!

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

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

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

    very nice brother, May Allah swt bless you

  • @MacDeveloper-p1e
    @MacDeveloper-p1e Год назад

    is it possible to manage state in stateless widget?

  • @d.developer
    @d.developer 2 года назад

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

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

      Most welcome 😍 Hope you get value in return