2:57 going over the sample project 4:36 cubits vs other mutable state management 9:34 BLoC vs cubit 11:00 building app using cubit 37:10 building app using BLoC
@samuelobe57144 жыл бұрын
I'm a simple man. I see a new Reso Coder video, I click...
@h3w454 жыл бұрын
thank you for covering the latest version of BLoC.
@mostafafahimi45884 жыл бұрын
This channel is best flutter channel ever. Watched a lot of bloc tutorials but non was helpful like this.
@justconnor7344 жыл бұрын
@34:50 For "final weatherCubit = context.bloc();" it says "'bloc' is deprecated and shouldn't be used. Use context.read or context.watch instead. Will be removed in v7.0.0. Try replacing the use of the deprecated member with the replacement.". What is a good replacement for this code? Thanks EDIT for anyone interested its final weatherCubit = context.read(); intead
@alexandrufilipescu13014 жыл бұрын
Thank you!
@jamesr24083 жыл бұрын
Thanks :-)
@mahdou36082 жыл бұрын
that is why i did not find it ,thank you
@SEOTADEO3 жыл бұрын
Thanks a lot for this good tutorial! I have been working part time for 6 months in a flutter project for a big IT company and never cared that much to understand this concept, but now I do and it makes everything a lot easier.
@mohamad2020810 ай бұрын
This is the best explanation of the Bloc I've seen
@vladyslavmi2 жыл бұрын
*After v6.1.0, both context.bloc and context.repository are deprecated in favor of **context.read** and **context.watch*
@jamesdim4 жыл бұрын
You are the best source for bloc development! And always up to date!
@bensalkb69022 жыл бұрын
I like your coding practices like organising files and stuffs
@juan_chan4 жыл бұрын
man, thats a really good explanation of this new feature, i dont even have a goods english skill and i completely understood what cubit and bloc is, thank you
@raunaksingh75122 жыл бұрын
Wow! This is a great course on Bloc library.
@TheJaniable3 жыл бұрын
Combined Cubit with Freezed.. and OMG what a result!
@thewallstreetchokra3 жыл бұрын
best ever tutorial for beginners...SUBSCRIBED
@makewebapp4 жыл бұрын
why not using an equatable package? Any specific reason? equatable: ^1.2.0
@aytunch4 жыл бұрын
I want to know the same thing. Especially considering the same author wrote equatable with bloc
@ResoCoder4 жыл бұрын
Just to not introduce yet another package into the tutorial. I guess it's simple enough that I should've used it though.
@nonsoedu43534 жыл бұрын
Me too taught equatable got obsolete for a minute or two there😌 ... Really nice tutorial though... understand the reason for cubit alot better now
@edungdivinefavour69773 жыл бұрын
Man. You got a new subscriber!!!!!!!!! This was so good. It cleared every question i had Thanks!!!!!
@kartavyabagga2 жыл бұрын
I guess now i can move forward to making a complete app. Thanks man!
@alex_moreno4 жыл бұрын
I love the simplicity of cubit. Thanks for sharing this and compare the differences You are awesome
@LeonardoCostaCoesta3 жыл бұрын
Thanks since from Brazil, man! Keep going the good job!
@akyna0wind3 жыл бұрын
bravo! excellent totorial!
@jimaustin36083 жыл бұрын
In learning state management (for flutter/dart development), I’ve been through with the setState design and the provider package; now looking at the BLoC pattern. BLoC ‘feels’ like imposing imperative design on a basically declarative (reactive) system, where provider seems a better fit for the flutter declarative framework. I don’t have good/bad opinions about this yet, just interested the views of those more experienced with flutter/dart .
@akshaymarathe81334 жыл бұрын
Sir please make a video of using bloc pattern along with json API
@samiral74234 жыл бұрын
please teach TDD with cubit
@danarputra91814 жыл бұрын
For first time using Bloc is hard And now in this video i know how is Bloc is worked
@astronaute4 жыл бұрын
There is no need to add "bloc" in pubspec.yaml, it’s pulled automatically with "flutter_bloc". Also, when using "const" constructors, you shouldn’t use "new" with them, it defies the (already limited) purpose.
@francoprofeti1423 жыл бұрын
I was thinking about the second thing while watching the video
@karthikraja65774 жыл бұрын
Finally bloc tutorial 👍👍👍👍👍 How many more videos are there in the DDD flutter series ?? @resocoder
@ResoCoder4 жыл бұрын
I think not more than 4.
@karthikraja65774 жыл бұрын
@@ResoCoder eagerly waiting for them ! Take care and relax ! It's surely a hell of task to compile such a awesome course ! Great effort bro 👍
@mibi20074 жыл бұрын
@@ResoCoder really good tutorial, thank you so much Matt
@abduraimoff30902 жыл бұрын
Thank you so much ! It helped me a lot
@cristianbedoyavargas3 жыл бұрын
Thank you so much for explaining this. I was looking for this for a while!
@peterwauyo24244 жыл бұрын
great explanations
@Grovermol4 жыл бұрын
Nice tutorial, i'm finally understanding cubit and bloc, thanks dude. By the way what theme did you use in VsCode for the tutorial?
@chanky2624 жыл бұрын
Awesome tutorial, thats what i was looking for
@oblakus4 жыл бұрын
Dude, thank you for this "eureka moment" that I just had!
@franfox3 жыл бұрын
Nice tutorial! I would like to ask you guys why was it not necessary to dispose the bloc in this case? thanks!
@raheemadamboev2 жыл бұрын
Thank you so much! It really helped me start with Bloc and Cubit. It is really similar to Jetpack ViewModel and Kotlin Flow pattern which is amazing!
@amartyakhan47004 жыл бұрын
Thanks a lot for this video! An in depth video/tutorial series about connecting a Flask/Django backend with a Flutter app would be amazing
@pedroricci14 жыл бұрын
Wow, great timing! Yesterday I was reading the documentation. Thanks!
@sidneymachara97733 жыл бұрын
Why do we pass the repository as a paramter to the cubit, rather than instantiating it inside the cubit . Nice tutorial. like how u explain and compare to other tools
@DiwakarSerala4 жыл бұрын
Hi any idea what to do with this warning: Close instances of `dart.core.Sink`
@ranjithjagadees4224 жыл бұрын
you can replace with context.bloc()..add(GetWeather(cityName));
@Alex-dg2mb4 жыл бұрын
If the block consumer only defined handling the case where the state is weatherloaded in the builder function (only the weatherror state was handled in the bloc listener), how did the UI update on weatherloaded once you searched for weather second time ? This is during the cubit section of this talk.
@hq_net11 ай бұрын
Everything is beautiful 😊😊
@Fly164 жыл бұрын
amazing tutorial! by the way what's the font you are using?
@virenkhatri19324 жыл бұрын
Why didn't you use equatable instead of == and hashcode overrides?
@efesahin71684 жыл бұрын
hey why did not use listener in weather_bloc.dart page ? In previous video which is counter app, we used to constructor with listen function. i mention that: CounterBloc() { counterEventController.stream.listen(mapEventToState); } like this.
@srihariayapilla42333 жыл бұрын
Which vs code theme is thhis. Looks sooooo good.
@pedrosanchezroca1814 жыл бұрын
how would you put data in the InitialState for the cubits?...like if I want data loaded at the beginning.
@HashemRC4 жыл бұрын
always thanks for you quality tutorials. what's real difference between Bloc and Cubit? when should we use Cubit?
@Raj_Gada3 ай бұрын
Can you upload a new Updated Video on bloc?
@efesahin71684 жыл бұрын
what is the differences between cubit and bloc? why we use cubit if we deleted or switched them ?
@dalriada333 жыл бұрын
One question: is it important to provide the FakeWeatherRepository from outside to the Cubit through its constructor? Is there some disadvantages if I create an instance of it inside the Cubit?
@aduhglupa3 жыл бұрын
Thank you for the tutorial. Can you show me the code using the "freezed" package?
@chinazaogwo50464 жыл бұрын
Awesome tutorial. Please can you send the plugins you use for flutter development with vs code
@axehai4 жыл бұрын
Hey, great work as always, I wanted know why didn't you suggest using Equatables for checking equality, like in TDD tutorials?
@socinety2 жыл бұрын
Can I use equatable package along with cubits without overriding equality?
@jktan57934 жыл бұрын
Hi @reso coder I have question about GetX, I am not sure what do you think about that library. thanks for sharing your knowledge and opinion.
@ahmadfajrulfalah4 жыл бұрын
why not use equatable instead?
@ResoCoder4 жыл бұрын
I don't want to introduce unnecessary packages to tutorials about a particular library.
@ahmadfajrulfalah4 жыл бұрын
@@ResoCoder i see, nice tutorial btw 👍
@johncerpa37824 жыл бұрын
Great video, thank you
@Ryszardenko4 жыл бұрын
Awesome! Thanks! Can you explain how toi use freezed with State classes?
@TestingQuebec4 жыл бұрын
Thanks for the tutorial. I'm curious as to how the '^' works in the hashCode override for the Weather class? 'cityName.hashCode ^ temperatureCelsius.hashCode'
@1234matthewjohnson Жыл бұрын
can the equatable package not be used with cubits rather than something like freezed?
@FalStudio12343 жыл бұрын
Awesome man, thanks a lot
@amirsohail72842 жыл бұрын
well explained
@knotcircle28443 жыл бұрын
Thank you for this video. I'm still new to flutter and I'm trying to develop cubits in an App. I'm lost on how to communicate the button tap/press event that calls an API get data and rebuild the UI and render it on a DataTable
@kitkatv71503 жыл бұрын
Great video tutorial👏! Thanks for formatting the vid to be straightforward. The website link helps so it can be easily followed. Looking forward to other awesome videos.
@jonahlehner38553 жыл бұрын
Another great video!
@landrygagne4 жыл бұрын
Great tutorial, thanks a lot! I was SOOOO depressed to see my app broken by flutter_bloc version upgrade. BTW, 6 major versions within 8 months for the flutter_bloc package, am I the only one shocked? Any chance to get some kind of stability for this package in the future? Otherwise you will be obliged to make a new tutorial every month!!!
@ResoCoder4 жыл бұрын
Most of the changes are quite minor but by following the rules of semantic versioning, every breaking change has to automatically bump the major version number. I'm not opposed to doing tutorials though 😀
@pramodmahajan14352 жыл бұрын
Written tutorial is not available???????
@mallikarjunreddy52294 жыл бұрын
Hey Matt, great explanation. Could you please help me out on how to generate boilerplate code like bloc extension.
@rubendarioguarnizomartinez27652 жыл бұрын
What is the difference between BLOC builder and BlocConsumer?
@aserlink4 жыл бұрын
How do you override equality using freezed? I have read the written tutorial but didnt find much help about this part
@sacrac13 жыл бұрын
I have a question, if I want to save the data that comes from the weather api in a database (sqflite), at what moment of the emit should I call that method to save and how would it be?
@snaidher54 жыл бұрын
Hi , please could you make an example of using firebase with cubit, please!
@mohad10624 жыл бұрын
you are my hero man.
@phianh45453 жыл бұрын
Thanks for your instructions, I love the way you organized your youtube channel and linked to your website, I'm doing with Bloc and now the cubit just remove the state file, which means will save my time alot. Really want to work with you some day, Peace out mate
@easazade4 жыл бұрын
thank you for this my code just became so smaller using functions instead of events
@rockinouttt4 жыл бұрын
Thank you for this video. Very helpful!
@emmanuelvedastus52182 жыл бұрын
Thanks a lot for this tutorial you realy saved my day im already your subscriber
@nicolasdupere3 жыл бұрын
Great tutorials! Thanks
@Marcelookoofficial Жыл бұрын
how can you use freeze for this?
@reanitchannel4 жыл бұрын
is possible to use Bloc and Cubit at single Blocbuider?
@santoshneupane12344 жыл бұрын
one Blocbuilder can listen to only one state change.... i think you can make a blocbuilder which listen to one state and inside it return another bloc builder which listen to another state... i. e. nesting of bloc builders...
@firafashop81164 жыл бұрын
request how is bloc implemented in multi dropdownbutton
@thongtech19843 жыл бұрын
great work, thanks alot for your vids, you just saved my days.
@nawalhussein18914 жыл бұрын
You are an amazing teacher! Thank you. Bloc has been like a maze for me and you have helped me greatly in figuring it out. Thanks again.
@ResoCoder4 жыл бұрын
Glad I could help!
@ShadowInfest4 жыл бұрын
Hey ResoCoder ;) Working on our app and needed to update Bloc. Thanks for this amazing video once again
@Faheem19884 жыл бұрын
how you are getting generate xxxx popup
@snaidher54 жыл бұрын
Hi, please could You Make a login example using cubit, I don't know how to validate the form. Thanks in advance
@geraldcampana92964 жыл бұрын
thanks for the tutorial!
@jktan57934 жыл бұрын
With Cubic, how can I get the current state ? for the pagination purpose
@nested93013 жыл бұрын
i understand all state managment packages and i never understand bloc ...
@semsax68624 жыл бұрын
Just what I was looking for!!!
@internetmichael21984 жыл бұрын
What is that VS code theme?
@shrinivasmanjithaya2112 Жыл бұрын
Clear explanantions..thank you so much..
@elistark92644 жыл бұрын
This is what we are waiting for!
@HashemRC4 жыл бұрын
CyberWidget😉
@elistark92644 жыл бұрын
@Hashem Aboonajmi 😉
@Jdbluesky3 жыл бұрын
Muchas gracias hermano!!
@programan63914 жыл бұрын
Great job, thank you.
@i.k.shaikh37724 жыл бұрын
Hey Thanks for this brightening tutorial, i am trying to pass an index of files in a directory to a listview, could you help me with that ??
@fritzjimenez91094 жыл бұрын
Finally a new bloc tutorial
@ahmedmaher-ez9xt3 жыл бұрын
thank you so much for your time and effort :) i'm learning from you a lot every day ... planing to finish TDD after this i will make a my start up project using TDD and will apply to remote job :) i will tell you when i got a job that your are the main reason of it ^_^
@StefanoSaitta4 жыл бұрын
Great content as always, in your opinion it makes sense to mix cubit and bloc in your app? What a bloc can do that a cubit can't?
@ResoCoder4 жыл бұрын
Thanks, Stefano! Bloc can, for example, transform its incoming events with debounceTime from RxDart. This is useful for auto-search where you don't want to necessarily trigger an API call for every inputted character.
@nizarelfennani74772 жыл бұрын
Which font are you in vscode?
@merisehat Жыл бұрын
is this for beginners also?
@nonsoedu43534 жыл бұрын
Question; can a bloc depend on a cubit. E.g authCubit as a dependency of multiple other bloc... Is this possible