All the other "Easy" tutorials assume some intermediate level of understanding. this truly is the "EASIEST" bloc tutorial on the internet. thank you so much!
@EasyApproach4 жыл бұрын
Glad it helped!
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@zlash75 жыл бұрын
14:27 decreasing by one lol but still very good explanation. Thank you for your time in sharing your knowledge.
@coffeebytez5 жыл бұрын
He just forgot to change it to minus 1 in CounterBloc. It happens. I do it in my videos sometimes. Then I rewatch and edit in a fix lol.
@EasyApproach4 жыл бұрын
Hahah! Yeah sorry I forgot! Thank you for understanding!
@EasyApproach4 жыл бұрын
Thank you Chris!
@qaiserhussain18613 жыл бұрын
hahaha that was funny part!
@darshakmehta3 жыл бұрын
@@EasyApproach That is totally negligible.... when focused on knowledge, such things don't even matter....
@gameofcodes98324 жыл бұрын
You helped me to learn both Provider and BLOC. I really appreciate your work. A lot of thanks to you :)
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@ronnykevin90763 жыл бұрын
Easy approach really has easy approaches
@ideepdave4 жыл бұрын
Thank you, gentleman. It Helped. Relief of working with flutter from one and a half years and finally understanding how bloc works.
@EasyApproach4 жыл бұрын
Glad it helped!
@urmilshroff4 жыл бұрын
Woah, I finally understood BLoC after nearly giving up on it! Thank you so much for this. It all makes sense now!🎉
@EasyApproach4 жыл бұрын
Glad it helped!
@urmilshroff4 жыл бұрын
@@EasyApproach I have a question though - you are using enums while the official docs suggest making classes for every event and also using the equitable package. That's where it gets annoying for me with the excessive boilerplate, so which is the appropriate way to do it?
@EasyApproach4 жыл бұрын
This is just thee basics. Wait let me share the proper video.
@EasyApproach4 жыл бұрын
kzbin.info/www/bejne/r5fRYqpoj5KCpdE watch this video. This is second part of Bloc
@nickbrodd71595 жыл бұрын
Excellent explanation of the fundamentals of the BLoC concept and a great example of how to implement the code! Thank you!!
@EasyApproach4 жыл бұрын
Thank you so much
@michaeltolsma77174 жыл бұрын
9:45 Thanks for that difference between yield and return. Put very simply.
@EasyApproach4 жыл бұрын
In streams, for putting the value into stream we use yield ;) . Please subscribe the channel.
@winstent9664 жыл бұрын
Thanks Bro! I just got "aha!!" on BLoC after watching this video. Keep up the great work!
@EasyApproach4 жыл бұрын
Please subscribe the channel if you like the video
@urmilshroff4 жыл бұрын
Same, I FINALLY got the "aha" moment with BLoC!
@ESLwithAlexey3 жыл бұрын
Great video with fantastic way to explain complex things! Thanks for sharing your practical knowledge in this bloc tutorial.
@poonamkalra63064 жыл бұрын
Really thanks to you for great explanation of bloc
@krishnakumarramachandran58884 жыл бұрын
Thanks for this Awesome Video brother. Now i understand bloc clearly.
@EasyApproach4 жыл бұрын
Thank you brother :) please subscribe the channel for more
@krishnakumarramachandran58884 жыл бұрын
@@EasyApproach Already Subscribed brother.
@AshiqurRahman4 жыл бұрын
This is the easiest video...Thank you
@EasyApproach4 жыл бұрын
Glad it helped! Please subscribe the channel.
@aresbowen1353 жыл бұрын
i know Im asking randomly but does someone know a tool to log back into an instagram account?? I was dumb lost my account password. I would love any help you can give me!
@timothyira52703 жыл бұрын
@Ares Bowen instablaster ;)
@aresbowen1353 жыл бұрын
@Timothy Ira Thanks so much for your reply. I found the site thru google and im waiting for the hacking stuff now. I see it takes a while so I will reply here later when my account password hopefully is recovered.
@aresbowen1353 жыл бұрын
@Timothy Ira it worked and I actually got access to my account again. I'm so happy! Thank you so much, you really help me out :D
@jiren89914 жыл бұрын
After watching this, I wished that I could subscribe you n number of times. Great work
@EasyApproach4 жыл бұрын
Thank you
@jiren89914 жыл бұрын
@@EasyApproach the pleasure is all mine
@salahdinemohamedahide21194 жыл бұрын
thanks helps a lot keep doing this you are a very good teacher
@EasyApproach4 жыл бұрын
Thank you so much please subscribe the channel
@Fred_Klingon4 жыл бұрын
Thanks for your explanation! Just one thing, I read the documentation before, I think that importing flutter_bloc is enough, it will import bloc by itself, no need to re-import in the project!
@doriangarcia734 жыл бұрын
Very clear and concise. Keep it up!
@EasyApproach4 жыл бұрын
Please subcribe the channel if you like
@doriangarcia734 жыл бұрын
@@EasyApproach Just did ;) Thanks! Take care out there.
@miltonvincenttis66804 жыл бұрын
Your accent I think is an effort to me well understood. Good English. In the switch there's an typo. In option to decrement you are adding (+) instead of (-).
@loncatsanasini61594 жыл бұрын
very good and simple explanation. thanks sir
@EasyApproach4 жыл бұрын
Thank you subsrcibe the channel please
@loncatsanasini61594 жыл бұрын
@@EasyApproach done
@EasyApproach4 жыл бұрын
Thank you :)
@TheIglooCreations4 жыл бұрын
Best explanation..Thank you so much
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@Brendan2Alexander4 жыл бұрын
Very concise and helpful! thank you
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@Andrew-ht7rf4 жыл бұрын
this is excellent, cheers mate from australia
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@solovigil74704 жыл бұрын
Just change in counter_bloc -> yield state-1 (when event is decrement) and u are good to go Nice video
@EasyApproach4 жыл бұрын
Haha yeah I did silly mistake. Please subscribe the channel.
@muneeraadil12144 жыл бұрын
Great stuff.. Thank You for explaining it very well :)
@steven_mkn4 жыл бұрын
19, 20, 21... "as you can see, it is decrementing by 1"
@EasyApproach4 жыл бұрын
pardon me :'( :'( ... :D
@steven_mkn4 жыл бұрын
@@EasyApproach It's cool bro, I understood. Thanks for the vid
@EasyApproach4 жыл бұрын
I appreciate man. Please subscribe the channel for more videos
@matrosovdeveloper4 жыл бұрын
Looks like decrementing feature of this BLOC is the most popular in the comments))) I don’t mind as it’s great video explanation
@ijazfx4 жыл бұрын
Very good! A tip for you for future videos: 1. Always prepare a script of your screencast. 2. Record full video without speaking, just focus on your coding. 3. Voice-over and annotate your video
@EasyApproach4 жыл бұрын
Thanks for the tips!
@matrosovdeveloper4 жыл бұрын
I don’t mind if some mistakes occurred if I got everything) nice video!
@sithumdilanga6504 жыл бұрын
Thanks man. Nice explanation
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@tareqislam86444 жыл бұрын
This is a very good explanation. I would like to hear some differences with the Provider package and other Simple alternatives as well. Like BlocProvider is the alternative of Provider, BlocProvider.of(context) is an alternative of Provider.of(context) and BlocBuilder is alternative of StreamBuilder, etc. But very good video man really forced me to subscribe as well.
@rishidiwute3604 Жыл бұрын
Saved me. and my day ! thank you man.
@SuvamPrasad4 жыл бұрын
Too many advertisements, However, you explained very well.
@dielectricna5 жыл бұрын
Very nicely explained. I was confused AF until now
@EasyApproach5 жыл бұрын
Thanks Happy to hear!
@mazenalsakkaf5 жыл бұрын
Great! thank you for simplifying Block...much appreciated
@EasyApproach4 жыл бұрын
Thank you :)
@elioalvarado88944 жыл бұрын
Muchas gracias mi hermano, buenísima explicación. Thanks for keep it so simple and understandable
@EasyApproach4 жыл бұрын
Thank you. Please subcribe the channel
@trainofthought57333 жыл бұрын
actually a good explanation
@deepakchauhan8884 Жыл бұрын
Please give example where I can use multiple bloc
@gokulprasanth39914 жыл бұрын
kindly please update the bloc tutorial video ,I'm getting errors like this below "BlocProvider.of() called with a context that doesn't contain a cubit of type CounterBloc"
@milanpoudel37374 жыл бұрын
Sorry to ask but how did you understand BLOC pattern when you were a beginner? Any resources, books that you recommend.Your video has helped a lot but still I want to go deep and learn more
@EasyApproach4 жыл бұрын
bloclibrary.dev/#/coreconcepts
@vgeniirshf89134 жыл бұрын
Nice explanation, thanks !
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel
@utpalgaurav143 жыл бұрын
Whats the difference between BLOC and MVC ? Looks same to me.
@metaspook Жыл бұрын
You've missed the Repository layer which supposed to be in between Data and Bloc layer
@shopno90964 жыл бұрын
Thank you. Its really helped.
@EasyApproach4 жыл бұрын
Thanks
@muhammadkashif72094 жыл бұрын
you explained very nicely but i am facing a little confusion why we need to used bloc pattern instead of simple variable logic
@EasyApproach4 жыл бұрын
It is complex but more organized than simple state management as all the related state exist at one place.
@muhammadkashif72094 жыл бұрын
@@EasyApproach thanks
@EasyApproach4 жыл бұрын
Welcome. Please subscribe the channel
@muhammadkashif72094 жыл бұрын
@@EasyApproach sure
@Mr_Zeesshhh3 жыл бұрын
On clicking decrement it is showing incremented value , I think you by mistakenly given yield state + 1 in decrement case instead of yield state - 1 . Am i right sir ?
@EasyApproach3 жыл бұрын
yes
@i_lovedeepika4 жыл бұрын
Was it really decrementing though?
@EasyApproach4 жыл бұрын
My bad
@htcnew52474 жыл бұрын
Great job! Thanks.
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@m.arslankhan74494 жыл бұрын
github link is not working
@kotlin_man5 жыл бұрын
Nice Video For Beginner Tanx
@EasyApproach4 жыл бұрын
Thank you so much
@msayeed785 жыл бұрын
Excellent thanks brother . Keep it up.
@EasyApproach4 жыл бұрын
Thank you :)
@ZeeshanAli-ju2nc5 жыл бұрын
can you describe yield state + 1; how can judge state variable as you are using butt not declare any where in file.
@EasyApproach5 жыл бұрын
this state variable is from Bloc class to access the current state, you don't have to define it.
@tareqislam86444 жыл бұрын
Bro, how should we handle dispose in flutter_bloc ?
@koustav20084 жыл бұрын
EXCELLENT TUTORIAL !!!
@EasyApproach4 жыл бұрын
Please subcribe the channel if you like
@nirbhaysrivastava9283 жыл бұрын
What is the benefits of adding this??
@FelipeSantiago0075 жыл бұрын
awesome! simple way of implementing! thank you
@EasyApproach4 жыл бұрын
Thanks I appreciate
@BeforeLeavingLife4 жыл бұрын
Good Job. Thank you bro !
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@llama72064 жыл бұрын
you didnt show data being passed from the data provider to the bloc............
@EasyApproach4 жыл бұрын
kzbin.info/www/bejne/r5fRYqpoj5KCpdE try this
@MrSaadmahmud4 жыл бұрын
Very good video. just one thought as viewer, your english is very fluent, just sometimes it tough to get when you speed it up, hope you make it more sound natural.
@EasyApproach4 жыл бұрын
In latest videos this is improved. Thanks for feedback
@062ravi4 жыл бұрын
Amazing! You are awsm!
@EasyApproach4 жыл бұрын
Thank you so much 😀
@bennguyen13134 жыл бұрын
I like how the inc/dec events are just enums, not another class! In CounterBloc you initialize a "initialState" variable to 0, but in the inc/dec event you update a "state" variable. Should these names have been the same? Is the counterScreen UI widget a child of counterBloc? In the CounterBloc's mapEventToState, would it have worked if you would have used "return" instead of "yield"? Or, in general must 'async' and 'yield' always go together?
@EasyApproach4 жыл бұрын
State returns the current value of state of CounteState, so as we are using int as counter state type so you can get the current value of counter by by using state.
@niteshrathore43414 жыл бұрын
Hey please make a full video on login and signup using the http get and post request.
@EasyApproach4 жыл бұрын
Sure
@niteshrathore43414 жыл бұрын
@@EasyApproach i really need to do login and signup using the http get and post. Because i want to create a project so it would be help to me. Your videos are amazing. I will share your videos to frnds.
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@uzairleo29105 жыл бұрын
why we need bloc pattern sir if we can do the same work easily
@EasyApproach5 жыл бұрын
to have more control on state management! Provider and Inherited widget are not completely state management, they are more state sharing mechanism but using bloc you would more control and organised code!
@uzairleo29105 жыл бұрын
@@EasyApproach Thanks
@fluttterdev1k Жыл бұрын
thanks bro ,but for this update you should use class CounterBloc extends Bloc { CounterBloc(int initialState) : super(initialState) { on((event, emit) { switch (event) { case counterEvent.increment: emit(state + 1); break; case counterEvent.decrement: emit(state - 1); break; } }); } } instead of class CounterBloc extends Bloc { CounterBloc(int initialState) : super(initialState); Stream mapEventToState(counterEvent event) async* { switch (event) { case counterEvent.increment: yield state + 1; break; case counterEvent.decrement: yield state - 1; break; } } }
@uzairleo29105 жыл бұрын
also why we used patterns anyone like provider or bloc etc etc what the actually need of this paradigm in development
@deebmali33784 жыл бұрын
because
@theethicalh37074 жыл бұрын
thank you very much
@EasyApproach4 жыл бұрын
You are welcome
@marcoseduardodasilvabergam5455 жыл бұрын
Ok so, I tried here and it works, but now, flutter_bloc is 2.1.1, and Android studio is telling me that: 'builder' is deprecated and shouldn't be used. Still working, but is telling me this...
@promaen5 жыл бұрын
if you havent figured it out already, use create: instead of build: see pub.dev/packages/flutter_bloc for additional resources
@ricard4584 жыл бұрын
At this time (May 2020) the BlocPrivider doesn't have the build: ... Instead, it has create:
@EasyApproach4 жыл бұрын
Yeah! However, the concept is still same ;)
@galaxian_hitchhiker3 жыл бұрын
Very cumbersome pattern for simple apps, a lot of work for basic things. But should see in really big apps. Not sure about the performance however.
@hananasyrawi92975 жыл бұрын
how about with counsume with A Api
@EasyApproach5 жыл бұрын
Sorry, I didn't get you
@barry.anderberg3 жыл бұрын
Async does not create another thread. Dart is a single thread language.
@unioltered74993 жыл бұрын
I think you are not right telling that async runs in a different thread because all Dart async programming is still synchronous and goes on the same thread. To use different thread you need to create new isolate using features of dart or use compute function which does everything for you. Read some articles about event loop and microTask loop.
@johnmichaelhilario58804 жыл бұрын
bro, you thank you so much!
@EasyApproach4 жыл бұрын
Welcome bro. Please subscribe the channel
@coderspathway4 жыл бұрын
I have no problem with your accent. I don't why some people has.
@AneesHameed4 жыл бұрын
I think this is the easiest bloc video that I have ever seen...
@EasyApproach4 жыл бұрын
Thanks. Please subscribe the channel.
@AneesHameed4 жыл бұрын
@@EasyApproach already done 😁
@husnulaqib53034 жыл бұрын
Thanks for sharing
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@husnulaqib53034 жыл бұрын
@@EasyApproach done
@siddharthmehra57963 жыл бұрын
It's hilarious that you didn't even notice that decrementing is not working as it should. Great explanation though!
@Fnyvids4 жыл бұрын
great job. Thanks for your efforts. subscribed. Accent u know :)
can i request video Flutter_bloc with Listview Builder that receive data from API? Thank you
@EasyApproach5 жыл бұрын
Are you a magician :o That's exactly my next topic! Will upload the video tomorrow or on Sunday. Thanks
@EasyApproach5 жыл бұрын
Thanks
@kartzhai5 жыл бұрын
@@EasyApproach WOAHH GREAT!! sure will watch your video asap. when will you upload it btw?
@EasyApproach5 жыл бұрын
@@kartzhai saturday afternoon or sunday morning!
@EasyApproach5 жыл бұрын
@@kartzhai you better press the bell icon you will get the notification.
@WorstDeveloper5 жыл бұрын
What if you had 100 different states to keep track of globally?
@EasyApproach5 жыл бұрын
We make different Blocs for different screen!
@KoradiyaAbhay5 жыл бұрын
Which is best, Bloc pattern or Provider ?
@EasyApproach5 жыл бұрын
Bloc for big projects as it gives more maintainability and power, however provider is good enough for decent projects!
@KoradiyaAbhay5 жыл бұрын
@@EasyApproach ok thanks
@KoradiyaAbhay5 жыл бұрын
@@EasyApproach Can I use some common state as AppState?
@EasyApproach5 жыл бұрын
@@KoradiyaAbhay yeah you can if needed!
@afifnadaf93214 жыл бұрын
Nice video.. He made typo on 10:04.. Rest is very informative.
@EasyApproach4 жыл бұрын
thankyou please subscribe the channel
@ITMANZ4 жыл бұрын
Well done, Mazz :)
@EasyApproach4 жыл бұрын
Thank you! 😃
@__renesan4 жыл бұрын
Gracias
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@balaganesh34404 жыл бұрын
good stuff..
@amangautam2734 жыл бұрын
Good job bro. Just a kind request, please leave your fake accent. Be real!
@EasyApproach4 жыл бұрын
Thank you for your suggestion :)
@EasyApproach4 жыл бұрын
Kindly subsrcibe the channel
@redpillersdotcom85024 жыл бұрын
Lol
@ssumeet24 жыл бұрын
bro good work!!!
@sangamshrestha1434 жыл бұрын
I determined to not watch after repeatedly hearing bloc pattren instead of bloc pattern.
@anpvikas5 жыл бұрын
Reso coder?
@EasyApproach5 жыл бұрын
I just go to know him, btw he is great!
@anpvikas5 жыл бұрын
=D
@EasyApproach5 жыл бұрын
Love you bro ❣️ :)
@zubu144 жыл бұрын
I think you got the wrong understanding of decreasing the counter :P. BTW great work.
@EasyApproach4 жыл бұрын
Ahahha pardon meeeeee
@zubu144 жыл бұрын
@@EasyApproach I have very hard time in understanding the Dependency Injection, have you made any video ? BLOC + Dependency Injection would be nice
@ChandanSomani4 жыл бұрын
if this is easy approach than what is complex......... your initial explanation was is good making things simple but creating ur porper base is necessary... i think more accurate approach in initial explanation was necessary , every aspects needs to tracked
@aynoofficial4482 жыл бұрын
not working
@LE82714 жыл бұрын
"State is the data you application is currently showing". Nope. It is ALL the parameters that defines what it should show. It is NOT the data. Data is the last in the queue.
@EasyApproach4 жыл бұрын
You are right!
@DexterTalha5 жыл бұрын
Nice an explained tutorial,,, thank you... But it's not decrementing the value...
@EasyApproach5 жыл бұрын
the code that I put on github?
@CubeEdgeRecap4 жыл бұрын
Subscribed.
@Vellutia5 жыл бұрын
both event yield + 1 as the int state XD
@EasyApproach5 жыл бұрын
XD you got the bloc right?
@Vellutia5 жыл бұрын
@@EasyApproach Yea you explained it pretty well. I used to implement provider package for my state management but now I want to learn using flutter_bloc
@EasyApproach5 жыл бұрын
@@Vellutia love you bro :*
@designpoint_india5 жыл бұрын
You make your video very nice but your talking speed is very high so keep your speed little bit slow.. thank you
@EasyApproach5 жыл бұрын
ohhh thanks :D I would take care of it
@skipydie4 жыл бұрын
So.. this seems like a presenter pattern to me...
@yassinelutumba69073 жыл бұрын
bloc pattren
@apnatuition554 жыл бұрын
ads bhot h
@EasyApproach4 жыл бұрын
Skip ;)
@damanjeetsingh38014 жыл бұрын
great video... as always... but please stop using this fake accent, totally intolerable. As a listener and a student, we need to put an extra effort on your pronunciations, when we should be concentrating on the concepts you are teaching. Please stop faking. it sounds really cheap. English is not our first language. So sounding like native is not expected from us.
@EasyApproach4 жыл бұрын
Noted :)
@damanjeetsingh38014 жыл бұрын
@@EasyApproach looking forward to more amazing content from you Maaz... Your original content in your original way... cheers...
@EasyApproach4 жыл бұрын
Thank you man. In latest video, I will make sure all the points you highlighted. Thanks for the feedback.
@AayushSingal14 жыл бұрын
it's a good tutorial. Just please leave your fake accent, it gets annoying really quick!