14:27 decreasing by one lol but still very good explanation. Thank you for your time in sharing your knowledge.
@coffeebytez4 жыл бұрын
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!
@darshakmehta2 жыл бұрын
@@EasyApproach That is totally negligible.... when focused on knowledge, such things don't even matter....
@agoodmansaid3 жыл бұрын
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!
@EasyApproach3 жыл бұрын
Glad it helped!
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@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.
@ronnykevin90763 жыл бұрын
Easy approach really has easy approaches
@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 жыл бұрын
kzfaq.info/get/bejne/r8yeZNpjv5Ozn6M.html watch this video. This is second part of Bloc
@gameofcodes98323 жыл бұрын
You helped me to learn both Provider and BLOC. I really appreciate your work. A lot of thanks to you :)
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@nickbrodd71594 жыл бұрын
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
@ideepdave3 жыл бұрын
Thank you, gentleman. It Helped. Relief of working with flutter from one and a half years and finally understanding how bloc works.
@EasyApproach3 жыл бұрын
Glad it helped!
@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!
@midclock3 жыл бұрын
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!
@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!
@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
@miltonvincenttis66803 жыл бұрын
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 (-).
@ESLwithAlexey2 жыл бұрын
Great video with fantastic way to explain complex things! Thanks for sharing your practical knowledge in this bloc tutorial.
@SuvamPrasad3 жыл бұрын
Too many advertisements, However, you explained very well.
@AshiqurRahman3 жыл бұрын
This is the easiest video...Thank you
@EasyApproach3 жыл бұрын
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
@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.
@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.
@poonamkalra63063 жыл бұрын
Really thanks to you for great explanation of bloc
@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
@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.
@salahdinemohamedahide21194 жыл бұрын
thanks helps a lot keep doing this you are a very good teacher
@EasyApproach4 жыл бұрын
Thank you so much please subscribe the channel
@trainofthought57333 жыл бұрын
actually a good explanation
@Andrew-ht7rf3 жыл бұрын
this is excellent, cheers mate from australia
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@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
@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.
@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
@danielxavdeoliveira85784 жыл бұрын
Very nicely explained. I was confused AF until now
@EasyApproach4 жыл бұрын
Thanks Happy to hear!
@mazenalsakkaf4 жыл бұрын
Great! thank you for simplifying Block...much appreciated
You've missed the Repository layer which supposed to be in between Data and Bloc layer
@elioalvarado88944 жыл бұрын
Muchas gracias mi hermano, buenísima explicación. Thanks for keep it so simple and understandable
@EasyApproach4 жыл бұрын
Thank you. Please subcribe the channel
@Brendan2Alexander4 жыл бұрын
Very concise and helpful! thank you
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@muneeraadil12144 жыл бұрын
Great stuff.. Thank You for explaining it very well :)
@4khdfreestockfootagenocopy1354 жыл бұрын
Wrong: Stream is to send data out for consumption and Sink is the point where data is added by the bloc so that it can be directed to stream.
@EasyApproach4 жыл бұрын
You are correct. Read description
@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.
@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; } } }
@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 ;)
@coderspathway4 жыл бұрын
I have no problem with your accent. I don't why some people has.
@manasasompalli3 жыл бұрын
Best explanation..Thank you so much
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@loncatsanasini61594 жыл бұрын
very good and simple explanation. thanks sir
@EasyApproach4 жыл бұрын
Thank you subsrcibe the channel please
@loncatsanasini61594 жыл бұрын
@@EasyApproach done
@EasyApproach4 жыл бұрын
Thank you :)
@AneesHameed4 жыл бұрын
I think this is the easiest bloc video that I have ever seen...
@EasyApproach4 жыл бұрын
Thanks. Please subscribe the channel.
@AneesHameed4 жыл бұрын
@@EasyApproach already done 😁
@llama72063 жыл бұрын
you didnt show data being passed from the data provider to the bloc............
@EasyApproach3 жыл бұрын
kzfaq.info/get/bejne/r8yeZNpjv5Ozn6M.html try this
@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
@siddharthmehra57962 жыл бұрын
It's hilarious that you didn't even notice that decrementing is not working as it should. Great explanation though!
@FelipeSantiago0074 жыл бұрын
awesome! simple way of implementing! thank you
@EasyApproach4 жыл бұрын
Thanks I appreciate
@i_lovedeepika3 жыл бұрын
Was it really decrementing though?
@EasyApproach3 жыл бұрын
My bad
@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.
@shopno90964 жыл бұрын
Thank you. Its really helped.
@EasyApproach4 жыл бұрын
Thanks
@sithumdilanga6504 жыл бұрын
Thanks man. Nice explanation
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@m.arslankhan74494 жыл бұрын
github link is not working
@vgeniirshf89134 жыл бұрын
Nice explanation, thanks !
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel
@utpalgaurav142 жыл бұрын
Whats the difference between BLOC and MVC ? Looks same to me.
@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
@galaxian_hitchhiker2 жыл бұрын
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.
@htcnew52473 жыл бұрын
Great job! Thanks.
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@ZeeshanAli-ju2nc4 жыл бұрын
can you describe yield state + 1; how can judge state variable as you are using butt not declare any where in file.
@EasyApproach4 жыл бұрын
this state variable is from Bloc class to access the current state, you don't have to define it.
@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"
@barry.anderberg2 жыл бұрын
Async does not create another thread. Dart is a single thread language.
@msayeed784 жыл бұрын
Excellent thanks brother . Keep it up.
@EasyApproach4 жыл бұрын
Thank you :)
@marcoseduardodasilvabergam5454 жыл бұрын
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...
@promaen4 жыл бұрын
if you havent figured it out already, use create: instead of build: see pub.dev/packages/flutter_bloc for additional resources
@uzairleo29104 жыл бұрын
also why we used patterns anyone like provider or bloc etc etc what the actually need of this paradigm in development
@deebmali33784 жыл бұрын
because
@deepakchauhan888411 ай бұрын
Please give example where I can use multiple bloc
@kotlin_man4 жыл бұрын
Nice Video For Beginner Tanx
@EasyApproach4 жыл бұрын
Thank you so much
@062ravi4 жыл бұрын
Amazing! You are awsm!
@EasyApproach4 жыл бұрын
Thank you so much 😀
@johnmichaelhilario58804 жыл бұрын
bro, you thank you so much!
@EasyApproach4 жыл бұрын
Welcome bro. Please subscribe the channel
@BeforeLeavingLife3 жыл бұрын
Good Job. Thank you bro !
@EasyApproach3 жыл бұрын
Thank you. Please subscribe the channel.
@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
@redpillersdotcom85023 жыл бұрын
Lol
@uzairleo29104 жыл бұрын
why we need bloc pattern sir if we can do the same work easily
@EasyApproach4 жыл бұрын
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!
@uzairleo29104 жыл бұрын
@@EasyApproach Thanks
@sangamshrestha1433 жыл бұрын
I determined to not watch after repeatedly hearing bloc pattren instead of bloc pattern.
@nirbhaysrivastava9283 жыл бұрын
What is the benefits of adding this??
@ITMANZ4 жыл бұрын
Well done, Mazz :)
@EasyApproach4 жыл бұрын
Thank you! 😃
@tareqislam86444 жыл бұрын
Bro, how should we handle dispose in flutter_bloc ?
@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
@WorstDeveloper4 жыл бұрын
What if you had 100 different states to keep track of globally?
@EasyApproach4 жыл бұрын
We make different Blocs for different screen!
@ssumeet23 жыл бұрын
bro good work!!!
@afifnadaf93214 жыл бұрын
Nice video.. He made typo on 10:04.. Rest is very informative.
@EasyApproach4 жыл бұрын
thankyou please subscribe the channel
@theethicalh37074 жыл бұрын
thank you very much
@EasyApproach4 жыл бұрын
You are welcome
@balaganesh34404 жыл бұрын
good stuff..
@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!
@__renesan4 жыл бұрын
Gracias
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@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
@husnulaqib53034 жыл бұрын
Thanks for sharing
@EasyApproach4 жыл бұрын
Thank you. Please subscribe the channel.
@husnulaqib53034 жыл бұрын
@@EasyApproach done
@hananasyrawi92974 жыл бұрын
how about with counsume with A Api
@EasyApproach4 жыл бұрын
Sorry, I didn't get you
@kartzhai4 жыл бұрын
can i request video Flutter_bloc with Listview Builder that receive data from API? Thank you
@EasyApproach4 жыл бұрын
Are you a magician :o That's exactly my next topic! Will upload the video tomorrow or on Sunday. Thanks
@EasyApproach4 жыл бұрын
Thanks
@kartzhai4 жыл бұрын
@@EasyApproach WOAHH GREAT!! sure will watch your video asap. when will you upload it btw?
@EasyApproach4 жыл бұрын
@@kartzhai saturday afternoon or sunday morning!
@EasyApproach4 жыл бұрын
@@kartzhai you better press the bell icon you will get the notification.
@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.
@CubeEdgeRecap4 жыл бұрын
Subscribed.
@DexterTalha4 жыл бұрын
Nice an explained tutorial,,, thank you... But it's not decrementing the value...
@EasyApproach4 жыл бұрын
the code that I put on github?
@skipydie3 жыл бұрын
So.. this seems like a presenter pattern to me...
@Fnyvids3 жыл бұрын
great job. Thanks for your efforts. subscribed. Accent u know :)
@aynoofficial4482 жыл бұрын
not working
@KoradiyaAbhay4 жыл бұрын
Which is best, Bloc pattern or Provider ?
@EasyApproach4 жыл бұрын
Bloc for big projects as it gives more maintainability and power, however provider is good enough for decent projects!
@KoradiyaAbhay4 жыл бұрын
@@EasyApproach ok thanks
@KoradiyaAbhay4 жыл бұрын
@@EasyApproach Can I use some common state as AppState?
@EasyApproach4 жыл бұрын
@@KoradiyaAbhay yeah you can if needed!
@anpvikas4 жыл бұрын
Reso coder?
@EasyApproach4 жыл бұрын
I just go to know him, btw he is great!
@anpvikas4 жыл бұрын
=D
@EasyApproach4 жыл бұрын
Love you bro ❣️ :)
@Vellutia4 жыл бұрын
both event yield + 1 as the int state XD
@EasyApproach4 жыл бұрын
XD you got the bloc right?
@Vellutia4 жыл бұрын
@@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
@EasyApproach4 жыл бұрын
@@Vellutia love you bro :*
@AayushSingal13 жыл бұрын
it's a good tutorial. Just please leave your fake accent, it gets annoying really quick!
@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.
@designpoint_india4 жыл бұрын
You make your video very nice but your talking speed is very high so keep your speed little bit slow.. thank you
@EasyApproach4 жыл бұрын
ohhh thanks :D I would take care of it
@mrigankkhandelwal73903 жыл бұрын
Fake accent doesnt make you sound any more professional or cool . -1