#12 - Debugging Blocs & Cubits, Lazy Providing with BlocProvider, Naming Conventions

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ต.ค. 2024

ความคิดเห็น • 104

  • @Flutterly
    @Flutterly  3 ปีที่แล้ว

    Hello, everyone!
    The entire course is now live on Udemy too, get it while it's hot --> www.udemy.com/course/bloc-from-zero-to-hero/?referralCode=E689592633984B34DBEF
    Also I have just managed to finally finish the entire BLoC - From Zero to Hero Complete Course, based on this tutorial series. You can check it out here -> th-cam.com/video/THCkkQ-V1-8/w-d-xo.html

  • @ahmedadnan5875
    @ahmedadnan5875 3 ปีที่แล้ว +17

    this tutorial wasn't just about block, it was about programming and experience, thank you

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +5

      That's the nicest feedback I ever got on this series! Thank you so much for your kind words, I really appreciate it!

    • @imankamali5799
      @imankamali5799 3 ปีที่แล้ว +1

      The description was beautiful and correct

  • @demoncodewithme3974
    @demoncodewithme3974 ปีที่แล้ว +1

    Dude
    i'm nnigerian you've helped me a lot In my walk in mobile app development
    I can't be more grateful.

  • @namdangvan5366
    @namdangvan5366 3 ปีที่แล้ว +5

    Can't believe this is the final video of this series :(((
    So great, I learned a lot from this series.
    I look forward to your next videos, thank you for this!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +2

      You're welcome, man, thanks for the feedback! ♥

  • @s1dc0des
    @s1dc0des 3 ปีที่แล้ว +1

    very nice tutorials on bloc. cant stop thinking what i can do with bloc. its powerful . thanks a lot

  • @fluniversity
    @fluniversity 3 ปีที่แล้ว +1

    If it was possible to vote for the best series of videos explaining the BLoC pattern on youtube it would be this one. Much success to the channel and the BLoC pattern!

  • @wegyu5787
    @wegyu5787 ปีที่แล้ว

    Thank you, man, I learned a lot not just about the Bloc I learned about Programming in general Keep up the good work.

  • @himanshugupta3897
    @himanshugupta3897 3 ปีที่แล้ว +1

    I was so much looking forward to the Real World Apps and finally its here. I have watched so many Bloc Videos, everyone covering the basics but there are things, dark things, which were never shown by any one other than you man.
    Kudos to you WCKD!!!!!

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! ✨

  • @aurelagbodoyetin3321
    @aurelagbodoyetin3321 3 ปีที่แล้ว +2

    🤩🤩🤩🤩
    Can't wait for the next video 🔥

  • @officialismailshah
    @officialismailshah 3 ปีที่แล้ว

    Beautiful journey with you Sir...
    Lots of Respect 🙌🙌🙌👏👏👏 for your beautiful effort..

  • @emirhan2070
    @emirhan2070 2 ปีที่แล้ว

    Looking forward to next tutorials, i hope you carry on this channel. Thank you so much for the bloc tutorial series

  • @ashmaei
    @ashmaei 2 หลายเดือนก่อน

    Thanks, already finished watching and thus hands-on about the tutorial that provide. Appreciate it! ❤

  • @rickycoates3003
    @rickycoates3003 2 ปีที่แล้ว

    After this 3 hours of this Zero to Hero, I feel like a hero for real starting from no knowledge at all,
    Also I learned a lot about flutter, honestly I feel like you just added 40% of all my knowledge in flutter
    Thank you so much, God bless you

  • @Add0w
    @Add0w 3 ปีที่แล้ว

    Thank you very much, we are waiting real projects with Bloc from zero to end soon ☺️

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      It's going to be called Bloc - from Hero to Wizard haha 😂

    • @Add0w
      @Add0w 3 ปีที่แล้ว

      @@Flutterly hhhh

  • @gyakhoe
    @gyakhoe 3 ปีที่แล้ว +3

    Can't wait to see you build real world app. I want to see what I can improve upon.. 😄

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Thanks, looking forward!

  • @harshchaudhary7490
    @harshchaudhary7490 3 ปีที่แล้ว +3

    What a amazing series it was!!!🎉
    Thanks for the knowledge wckd🔥
    Always grateful 🙏

  • @AnthonyDev
    @AnthonyDev 3 ปีที่แล้ว +1

    Thanks for the effort doing these series, I watched all the videos and they will help me develop flutter apps with bloc, since I used to getx (I've done some videos about it on my channel) but I was very curious to learn other state management packages like the popular bloc. Thanks again.

  • @skypuff
    @skypuff ปีที่แล้ว

    Thank you very much for this tutorial series, season 1 was amazing. I'll be starting the next season soon.

  • @zakariyaetouzi7967
    @zakariyaetouzi7967 3 ปีที่แล้ว +1

    WCKD is about the quality, not the quantity,
    No one has succeeded to explain bloc the way you did.
    Waiting for your next videos

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! Really appreciate it!

  • @MarciMatuz
    @MarciMatuz 2 ปีที่แล้ว

    Thank you for this amazing tutorial 😍
    I think I learned something new almost from every video of this series, keep it up.

  • @umitdemir3741
    @umitdemir3741 3 ปีที่แล้ว +10

    I learned so much about flutter bloc with you. Thank you for this.
    Can you tell we what about your next series if it will be of course:)

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +15

      In the next series I'll put all we learned to practice by developing real world apps!

    • @pedrodelacruz2369
      @pedrodelacruz2369 3 ปีที่แล้ว +1

      @@Flutterly 😎😎😎 Excellent!!

  • @mhouney
    @mhouney ปีที่แล้ว

    Very educative tutorial series! Thanks for your work! :)

  • @nivinkumar956
    @nivinkumar956 2 ปีที่แล้ว

    Thanks man , I got a job watching your videos , you are a real hero , 😍😍❤️❤️❤️

  • @appschoolss
    @appschoolss 2 ปีที่แล้ว

    Thank you so much WCKD! I learned a lot from this series. 😃

  • @prashanteb
    @prashanteb 3 ปีที่แล้ว +1

    Its really very good tutorial explaining about bloc I ever seen. I have been learning bloc and getting confused every time. This helped me lot!! Thank you so much for this wonderful tutorial. I believe your next tutorial will be with bloc instead of cubic with repository :) . If you can create that then that will great!!

  • @saitejd8108
    @saitejd8108 3 ปีที่แล้ว

    It's been such an amazing series to watch and learn everything about bloc library. Thank you so much wckd for the entire series. It would be very reasonable if you can put all these things into a real-time example or application. We will be waiting for that.

  • @mohamedelyamani7845
    @mohamedelyamani7845 ปีที่แล้ว

    Very good, well organized course
    Really appreciate the effort ❤️

  • @jafar1607
    @jafar1607 3 ปีที่แล้ว +2

    Great work bro....!!!
    It's an amazing series , not just about bloc , about state management.
    I have a suggestion for a short video..! About freezed class and dartz package. There are many videos but if you do it in your way, that would be the best...
    Thanks for efforts.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thanks for the idea!

  • @yanischetouani7392
    @yanischetouani7392 3 ปีที่แล้ว +3

    let's start by a real world E-commerce App with firebase ! there is no e-commerce app built on youtube with bloc ! so you will be the first to built it !!! and we all know it wil be fire 🔥🔥 ! thnks for the effort

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +2

      Wow, wait up! We'll have to start slowly so everyone understands how all the principles apply!

  • @alaajaddou8751
    @alaajaddou8751 ปีที่แล้ว

    a handy tutorial for bloc patterns and many more thanks a lot and have a great time. Aj is out, bey 😉

  • @TimurSrvarov
    @TimurSrvarov 3 ปีที่แล้ว +1

    Great! Would great to see some videos about app performance best practice. Thanks in advance.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Great suggestion! Will take in mind!

  • @TheMyshreyash
    @TheMyshreyash 3 ปีที่แล้ว +1

    Great video and great series. Would love you to create more wonderful series like this in flutter to provide us more knowledge with animations and UI if possible. Thanks man

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thanks, will do!

  • @akliatharia
    @akliatharia 3 ปีที่แล้ว +1

    great work thnx very much, congratulations from tunisia waiting for ur next real world app

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! ✨

  • @j3ns
    @j3ns 3 ปีที่แล้ว +1

    Awesome tutorial series! Thank you so much.

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you, you're very welcome! ✨

  • @phanquocanh1685
    @phanquocanh1685 11 หลายเดือนก่อน

    my man, you are the true hero

  • @GabrielCosta-xr5vr
    @GabrielCosta-xr5vr 3 ปีที่แล้ว +2

    Great series! Waiting for the next one! Thank you for this!
    With all the benefits that bloc provider offers (and repository provider) do you use some other service locator (like get_it)? If not, in what cases it can be useful?

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much!
      Nope, I don't use any service locator at all. Bloc_library comes with absolutely everything you would need for a perfectly functional app.

  • @nanakwame1122
    @nanakwame1122 3 ปีที่แล้ว

    I've arrived here, great job. Made me understand new stuff and unlearn some bad ideas. You didn't talk about replay bloc, did it come later?

  • @sulaimanabuanza3722
    @sulaimanabuanza3722 ปีที่แล้ว

    THanks a lot man, i really get benefits of this course

  • @sonamohialdin3376
    @sonamohialdin3376 11 หลายเดือนก่อน

    This was an amazing series thank you

  • @sondoskannous3306
    @sondoskannous3306 3 ปีที่แล้ว

    great job, amazing and very useful tutorial, I learned a lot from this series. Thank you for it

  • @yuk_bisa
    @yuk_bisa ปีที่แล้ว

    Thank You Sir, Amazing Series..

  • @messam1981
    @messam1981 ปีที่แล้ว

    Amazing My friend, Thank you and Well Done

  • @mohammadmujahid8850
    @mohammadmujahid8850 ปีที่แล้ว

    Thank you for sharing so much knowledge.

  • @titiconstantin5846
    @titiconstantin5846 3 ปีที่แล้ว +1

    Congratulations on the series! It was very helpul. Can you point me/us to a github repository maybe, where I could find a general files/package structure that includes all modules that you talked about in the series? ( Repository, bloc-cubits, models..etc) thanks

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      I'll try and create a default starting project with everything you need!

  • @franfox
    @franfox 3 ปีที่แล้ว +1

    Thanks for sharing it!

  • @IELTSwithJamoliddin
    @IELTSwithJamoliddin หลายเดือนก่อน

    Great tutorial,thank you so much

  • @keithbacalso9433
    @keithbacalso9433 3 ปีที่แล้ว

    Thank you Flutterly for this amazing tutorial. You are a great teacher and I am glad that I found this. I was expecting for a Bloc examples too not just Cubits.. will there be one soon? hopefully.
    And btw, in Flutter Bloc 7.0.0 version and above does not anymore use Cubit cubit, but instead uses BlocBase now. Jut to help others who are using version 7 :)
    Thank you Flutterly :D

  • @codyzhu6114
    @codyzhu6114 3 ปีที่แล้ว +1

    thank you for your dedication

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much! ✨

  • @khairulanas
    @khairulanas 3 ปีที่แล้ว +1

    thanks you, you are awesome guys...

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you so much!

  • @Abdukhalilov
    @Abdukhalilov 3 ปีที่แล้ว +1

    Hi thank you for awesome tutorial!!! Can you do Cubit tutorial with socketIO?

  • @banglafactsteller6780
    @banglafactsteller6780 3 ปีที่แล้ว +1

    great work . which app series coming next . i think http app will be a great idea !!!

  • @avishaikdoshim5629
    @avishaikdoshim5629 3 ปีที่แล้ว +1

    Your course is amazing! and helped me a lot!, one question I have that I could not find a solid answer for is , what is the best practice for using DI when using bloc pattern? , I many implementations that uses GetIt/Inject . So for example I used the onGenerateRoute function to route between screens, but I found myself defining everything related to the bloc dependency in that router file, it feels like a code smell, any suggestions ? 10x! :)

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      The only solution to inject stuff into the widget tree with bloc library is by using BlocProvider. I wouldn't recommend GetIt since I don't feel it's that secure.

  • @delmontee
    @delmontee 8 หลายเดือนก่อน

    I'm still a bit confused with cubit vs bloc. Did you use a bloc in any of the previous tutorials? They all seemed to be cubits?

  • @saitejd8108
    @saitejd8108 3 ปีที่แล้ว

    Hey, wckd. I am working on a kind of dating app I wanted to give bloc architecture. It is having bottom navigation for that I want to manage with the bloc. And every page of this bottom navigation is getting data from the backend and having some user interactions like and dislike users etc. I want to manage the state of the application as even I switch between pages of bottom navigation and pages should keep their state which I don't want to fetch users again when this happens and do actions as I mentioned before. Can you please suggest to me how to proceed with this using the bloc pattern for this whole scenario? Waiting for your reply.

  • @markkhakimulin592
    @markkhakimulin592 2 ปีที่แล้ว

    Great work bro....!!!
    How can i combine the same state for cubit and bloc?

  • @abdullahalamodi5455
    @abdullahalamodi5455 3 ปีที่แล้ว +1

    I wanna ask you about dispose() method and close the bloc. - in case I wrap it on the materialApp widget the bloc will stay opened as long as the app is running, so what's the benefit of closing it in this case ?

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      As I told you, whenever the BlocProvider created the instance of the cubit/bloc automatically, then it will close it automatically. But if you create it manually by saying BlocA blocA= BlocA() and then provide it with a BlocProvider, you'll have to manually close it since you manually create it. That's the point

    • @abdullahalamodi5455
      @abdullahalamodi5455 3 ปีที่แล้ว +1

      @@Flutterly
      yes I mean when I created it manually not wrap it (I wrote wrong), but I was asking about when I created it manually in the main screen (if I set close function or not) it will not
      closed as long as the app is running because the main screen will not close while the app is running
      is that right

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      Yes, it won't. While the app is running, it won't be closed. But it's highly recommended to close it in the dispose method so that whenever the app closes, the streams of your blocs/cubits won't remain open, therefore won't " leak" anything. Hope you understood!

    • @abdullahalamodi5455
      @abdullahalamodi5455 3 ปีที่แล้ว

      @@Flutterly
      Yes I get it , thanks a lot man.

  • @rsajdok
    @rsajdok 3 ปีที่แล้ว +1

    Will be the riverpod in the future?

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +4

      Nope, only bloc. I don't like any other stare management solutions.

  • @NurulIslam-dw8yp
    @NurulIslam-dw8yp 3 ปีที่แล้ว

    Can you make a whole application by using all architecture of bloc from lesson no 4

  • @-RimuruTempest
    @-RimuruTempest 3 ปีที่แล้ว +1

    Pls post video about MVVM pattern in flutter...

  • @darkness_wild_rift
    @darkness_wild_rift 3 ปีที่แล้ว +1

    you are amazing

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว

      Thank you, brother!

  • @letscode4277
    @letscode4277 3 ปีที่แล้ว +1

    I'm building a big app now .. and i have a screen where i have to load three different type of challenges in the same screen the problem is when i use just one bloc if there's an error in one of the 3 types or a loading the 3 will load simultaniously because they receive the same state. Is it okay to divide it to 3 blocs one for each ? because i didn't want to create 3 diffrenent instances of the same bloc

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      No, but you would rather have multiple different states for each type of challenge, challengeALoaded/loading/error, ChallengeBLoaded/loading/error, ChallengeCLoaded/loading/error while also having a state with AllChallengesLoaded perhaps

    • @letscode4277
      @letscode4277 3 ปีที่แล้ว +1

      @@Flutterly Thanks ! so it's just one state but with 3 attributes for each challenge /loaded/loading/error and every time i load a challenge i do state.copyWith... because otherwise the last type of state received will apply to all the other challenges

    • @Flutterly
      @Flutterly  3 ปีที่แล้ว +1

      You need to think and extract what specific parts of your UI change differently. So in your case you said you would have 3 different types of challenges, so I guess you'd have something like 3 containers, one for challengeTypeA, another one for TypeB and another one for typeC. You'd have then these 3 containers wrapped in a BlocBuilder so that they rebuild whenever your bloc emits a new state. But your bloc will emit something like this, ChanlengeTypeALoading, ChallengeTypeBLoading, ChallengeTypeBLoaded, ChallengeTypeCLoading etc. And you'll rebuild each container depending on which specific type of state you'll retrieve.

    • @letscode4277
      @letscode4277 3 ปีที่แล้ว

      @@Flutterly Thanks !

  • @mohamedelbendary90
    @mohamedelbendary90 3 ปีที่แล้ว +2

    Will you make a real app tutorial that includes API integration?

  • @AnandiChovatiya
    @AnandiChovatiya ปีที่แล้ว

    I think you write wrong in video
    Cubit extends Bloc(because Parent class never extends child class)
    By the way, Video is super amaze.

  • @aromalunnikrishnan161
    @aromalunnikrishnan161 ปีที่แล้ว

    Thank you Sir

  • @NurulIslam-dw8yp
    @NurulIslam-dw8yp 3 ปีที่แล้ว +1

    Thanks

  • @hyunkim1158
    @hyunkim1158 6 หลายเดือนก่อน

    THANKS!

  • @anhle-fv6fp
    @anhle-fv6fp 3 ปีที่แล้ว

    Thank you very very much. Can you build a serries Flutter call Native code

  • @ashrafabdo5461
    @ashrafabdo5461 ปีที่แล้ว

    thank you

  • @GetBoredSoon
    @GetBoredSoon 2 ปีที่แล้ว

    Amazing series but a bit too much for newbie like me to catch up 😅😅😅

  • @farhanahmad-bv1mx
    @farhanahmad-bv1mx 8 หลายเดือนก่อน

    It was great knowledge tutorial but.... But little bit fast

  • @farhanahmad-bv1mx
    @farhanahmad-bv1mx 8 หลายเดือนก่อน

    Try to slow down a bit of your teaching speed