Great, I watched lots of videos about flutter bloc but didn't understand. but your videos did magic. the best way of teaching. I appreciate this and Thanks
me too. watched one somewhere (Wont say the channel) and the guy was copying and pasting codes and i was lost over and over. yours is good and with pictures. God bless you
I was struggling to understand what is BLOC, after watching 1st part i feel confident and now i feel GLAD because now I am able to implement it in my project. Thanks. ✌️👍. You make it very easier for us. very appreciated.
I appreciate your efforts for making a video on a complex topic like BLoC. Part 1 of this was mind blowing. However this one was not upto the mark because of too much copy pasting of the code....
One thing I would like to suggest is instead of using if else why don’t use switch case that will be helpful to manage all the case easily and in future any new case gets added it becomes easier to manage to that case quickly
Bro...thank u so much for the wonderful video. I am from Kerala. You got another subscriber.!!!! :) I will follow ur channel to learn more about flutter.
what if you need to pass an object with the sink call? For example remove an article from your feed, you'd want to be able to send an id. Then retrieve and updated list of articles minus the one you removed.
Very good explanation. I have been searching for a problem it will be very helpful for me if you can give me some solution. That is just like in some dating apps like bumble, tinder how can we actually store the results from the API we get even after we navigate to other screen and come back. I have used future builder for future variable I've created some other variables and stored the results from API. It helps me not fire the future when I rebuild the widget using setstate. But when I navigate to some screen and comes back the future fires again and gets me the same result. What I want is need to call the API only when user start the app and use it for the whole time until he closes it. Thank you.
Hi mate, I watched your previous video about getx which doesn't need any stateful widget. which one is more memory-friendly? in your opinion? this one using stateful widget, or getx without stateful widget?
Stateless is preferred, GetX will manage state for you. But sometime you need your UI to react for some reason, implementing GetX equivalent for that may bring more complexity. So you can use StatefulWidget. I prefer to follow standards but keeping it simple at the same time.
Great video, I'm getting warning saying ' Close instances of `dart.core.Sink' even i have closed the stream in dispose method.And also for one stream iam getting the exception :The getter _stream is called on null receiver null.What could be the issue!? And please make a video on Redux library as well. Thanks for great video.
good teaching, what do you do if you want to listen to it again later on? like if it was used for a chat, then you close it, but then later on want to open it back up, what's the best way to do that?
Awesome video.. do you know how can we use bools with our bloc? For example, how could we use int counter on other pages as Stream builder value.. I am trying to place bool there and make a toggle button, but with no luck
@Nooks, thank you for feedback. Yes, you can use any data type you want including primitive and custom models. I doubt your state stream controller is not correctly set with bool type.. it should work straight forward.
If you don't know actual case, then dispose it on Page dispose method... Or if you know when job is done, like payment transactions or something you can dispose manually.
Can you explain how this line works in your code with out using Uri.parse ? var response = await client.get(url); vs var response = await client.get(Uri.Parse(url));
@@CodeXdev mmmmm yesssss i try to understand your point of view... when i need to add something in a pipe i use: Function(String) get name => _.sink.add; and for "output": Stream get name2 => _.stream.transform(_); when i need to add, in widget tree i use onPress: name, and send function on the widget that i create somewhere in other file i try to understand where use StreamSink!! really! is first time that i see :) :) (no, second... last week i see that on your first video)
VS Code says -> *Menlo, Monaco, 'Courier New', monospace* I think these are defaults. Yes, I changed font size to 20 so that all can see properly even on low resolution 👍
Bro there is no proper tutorial...for animation from very basics..like..complete masterclass..please take.your time and add too..bro❤️will be kind from.you
There are tutorials for animations, but of course I am going to plan to create series of video on Animation as its one of the most requested topic for Flutter. I can not give date, bt yes.. very soon :)
Getting so much error on Model Class. Maybe the reason is the new Null-Safety (Flutter v2.2.1). I had created the class from the website you called quicktype.io Please give me some idea about this topic. Thanks. And by the way, I am your big fan. Thanks a lot for your videos.
one word to say !! this is the best tutorial on bloc. Its very simple and easily understandable.
Wow, thanks!
Great, I watched lots of videos about flutter bloc but didn't understand. but your videos did magic. the best way of teaching. I appreciate this and Thanks
me too. watched one somewhere (Wont say the channel) and the guy was copying and pasting codes and i was lost over and over. yours is good and with pictures. God bless you
@@breadknyf brother my comment was of 4 months ago.. now i learnt alot and made large projects 😁🤗😜
@@aizazahmad8138 Great bro. Good for you!
I looked at a number of videos about state management and BLoC, your video showed me everything I needed
it happened with me too....exactly
you are the only guy who can teach this!!!!!! any UA-camr can't do this I've seen them all, Google should recommend you on this topic
OMG.. most overwhelming comment! Thank you so much and I am glad that my teaching method is liked by many...
@@CodeXdev you explain every detail that's why most people like your teaching method, Please do this always, you deserve a million views
@@mydrama6980 Exactly!!
I was struggling to understand what is BLOC, after watching 1st part i feel confident and now i feel GLAD because now I am able to implement it in my project. Thanks. ✌️👍. You make it very easier for us. very appreciated.
you are incredible dude. make that complex topic look like a piece of cake.
The most quality content i have seen so far thanks for doing this.
Wow, thanks!
This is the best tutorial on bloc
You good. The best flutter man in India!
Thank you sir. This is very simple and easy to understand. Now BLoC pattern concept is clear.
Awesome explanation. Such a great teacher in Flutter.
Thanks from Japan.
your video is very useful to me.
thank you very much
most useful when studying bloc
sorry, my english is poor
best explanation ever
very good explanation, thanks
Thankyou for making us understand in a easy way. Great job
@Simran Yadav, appreciate your feedback! 👍
Finally I understood BloC. Thanks buddy!
you explained this bloc state management very well.
Really Helpful.
First video with 4K resolution Which resolution you people watch in?
1080 pixels
This video is amazing sir, thanks for the tutorial!
Super super useful!!!!!!
Thank you sir I am understanding better now from this tutorial about bloc pattern keep add more videos on bloc pattern
Please another video on the BLOC pattern using Bloc library with firestore .
This Video Helped a Lot.
Great explanation brother 😊😊😊😊Thanks a lot 😊😊
Awesome Video brother. Love from Pakistan.
Same Best Value & Same Great tutorial ...... Man !!!
Very helpful video thanks
Glad it was helpful!
YES SIR ALSO DO MAKE GETX TUTORIAL
Yes @Sanchit, I am preparing tutorial for that.. hope this weekend I will upload.
I appreciate your efforts for making a video on a complex topic like BLoC. Part 1 of this was mind blowing. However this one was not upto the mark because of too much copy pasting of the code....
just learned what's bloc. Thank You so much.
🥳🥳🥳 make sure to watch 1st part as well
Thanks for this nice video. Please make some video on flutter_bloc for complex application,not for todo type of thing
Bro awesome..i wanted to learn bout cubit also ❤️plz teach
One thing I would like to suggest is instead of using if else why don’t use switch case that will be helpful to manage all the case easily and in future any new case gets added it becomes easier to manage to that case quickly
Please make video about (stream, sink) vs (event, states) whats is difference between and when to use
want more on BLoC 😍
You got a sub❤️
I love the way you teach us
Thank you :)
Thanks buddy
Excellent content!
You are good
Please another video on the BLOC pattern for Tab Bar view using API
hey Cody can you make a video on flutter_bloc package usage ? Thanks in advance :D
Just awesome
Super
thanks for your TU bro.
Great video bro...please do a video on which is the best approach .Providers vs Bloc vs GetX Vs Redux
Bro...thank u so much for the wonderful video. I am from Kerala. You got another subscriber.!!!! :) I will follow ur channel to learn more about flutter.
Thanks and welcome
How to do to maintain global state if you want to have independent widgets?
Did you get the code to maintain the global state
Amazing I found the good one
Sir please put a video related login with facebook and login with google with page redirection.
want more about bloc and cubit
Could you provide code sample of your bloc implementation of this example? i can't find it in your github, thanks
SIR PLZ MAKE A VIDEO FOR GOOGLE MAPS IN FLUTTER
Hey, can you please make a tutorial on the flutter_bloc library as well?
what if you need to pass an object with the sink call? For example remove an article from your feed, you'd want to be able to send an id. Then retrieve and updated list of articles minus the one you removed.
Sure, in sink you can add int also.. you can pass the event as remove and id to be removed. Give it a try, if you face issue please connect on discord
Kindly make a video on flutter_bloc package in detail
Very good explanation.
I have been searching for a problem it will be very helpful for me if you can give me some solution. That is just like in some dating apps like bumble, tinder how can we actually store the results from the API we get even after we navigate to other screen and come back. I have used future builder for future variable I've created some other variables and stored the results from API. It helps me not fire the future when I rebuild the widget using setstate. But when I navigate to some screen and comes back the future fires again and gets me the same result. What I want is need to call the API only when user start the app and use it for the whole time until he closes it. Thank you.
can you please make a video for Post request which takes body. I have done this with Provider but I want to do it using bloc pattern.
This is really nice... how can we integrate this with Cubit instead of Bloc?
i have a question, when i run the flutter code, why running gradle task takes so long. i takes around 30minutes to build and run, please tell me
Error: The argument type 'List?' can't be assigned to the parameter type 'List'.
Hi mate, I watched your previous video about getx which doesn't need any stateful widget. which one is more memory-friendly? in your opinion? this one using stateful widget, or getx without stateful widget?
Stateless is preferred, GetX will manage state for you.
But sometime you need your UI to react for some reason, implementing GetX equivalent for that may bring more complexity. So you can use StatefulWidget.
I prefer to follow standards but keeping it simple at the same time.
Subscribed ❤️
Hi really amazing tutorial. I am trying to debug my code since 4 days but unable to remove the error. COuld you please help me out
Sure, please send me the details.
What if we want to call delete and need to pass value to it..
I am getting this error pls help
Expected a value of type 'Stream', but got one of type '_ControllerStream'
you are using wrong value in the StreamBuilder, it should be the stream from stream controller.
@@CodeXdev I Found that 😅
Thanks for replying, BTW your explanation was Solid
Great video, I'm getting warning saying ' Close instances of `dart.core.Sink' even i have closed the stream in dispose method.And also for one stream iam getting the exception :The getter _stream is called on null receiver null.What could be the issue!? And please make a video on Redux library as well. Thanks for great video.
good teaching, what do you do if you want to listen to it again later on? like if it was used for a chat, then you close it, but then later on want to open it back up, what's the best way to do that?
For continuous listening you can use broadcast
@@CodeXdev okay, so it's okay to leave it open for updates and stuff?
Yes, in chat applications or places where you will be receiving data continuously
@@CodeXdev okay great, thank you
Awesome video.. do you know how can we use bools with our bloc? For example, how could we use int counter on other pages as Stream builder value.. I am trying to place bool there and make a toggle button, but with no luck
@Nooks, thank you for feedback. Yes, you can use any data type you want including primitive and custom models. I doubt your state stream controller is not correctly set with bool type.. it should work straight forward.
which architecture is used in this example?
Bro please make a video on getX, we really need that
Can you please tell me when to use BloC pattern and when to use Provider?
How can I pass additional data in the eventSink along with the action?
what is the difference between calling counterBLoC.counterStream vs counterBLoC.eventStream in the StreamBuilder?
Event stream is for sending commands to controller, counter stream is to do the actual job based on event..
😇
can you add pagination event into this..?
I also want to know when should i dispose the stream..i mean..when how can i know i have used it
If you don't know actual case, then dispose it on Page dispose method... Or if you know when job is done, like payment transactions or something you can dispose manually.
17:36 How do you get the options to surround code with? I don't have the option with VSCode
for VS Code its CMD + . (dot) or simply click on the bulb icon on the left side
Can you explain how this line works in your code with out using Uri.parse ?
var response = await client.get(url);
vs
var response = await client.get(Uri.Parse(url));
Because my http library was older, that time it was supporting direct String as url
Is the flutter clock series finished?
Please make a tutorial on P2P based file sharing app
It won't be a tutorial then, it will become full fledge project
@@CodeXdev can you please make It want to learn
Sir How can we handle click event in bloc pattern ?
I have mentioned in tutorial.. you can just call method from BLoC or pass parameters
@@CodeXdev Thank you😍
Can i use singleton pattern..to use a bloc..like..i wanna..have whole app runnning in single instance of bloc..reply bro😿❤️❤️
Why not, you can create StreamBuilder with Singleton pattern as well..
whats difference about Stream and StreamSink?
StreamSink is input and Stream is output
@@CodeXdev EscuseME.... want i mean... difference between sink and StreamSink.... :) :)
ahhhhahaha i wrong to write!
😀😀😆 sink is property name and StreamSink is type.. And you already know the use-to capture input. 👍
@@CodeXdev mmmmm yesssss i try to understand your point of view...
when i need to add something in a pipe i use:
Function(String) get name => _.sink.add;
and for "output":
Stream get name2 => _.stream.transform(_);
when i need to add, in widget tree i use onPress: name, and send function on the widget that i create somewhere in other file
i try to understand where use StreamSink!! really! is first time that i see :) :)
(no, second... last week i see that on your first video)
okeyyyyy i understand the problem!!! thankSoMuchForYourVideos!!!!!!!!!
It doesn't work with listview.builder
Which is best providers or bloc?.
Provider is recommended by Flutter.. but, it really matters what suits you well :)
@@CodeXdev thank you.
Hey which font you are using in your vs ide
VS Code says -> *Menlo, Monaco, 'Courier New', monospace* I think these are defaults.
Yes, I changed font size to 20 so that all can see properly even on low resolution 👍
@@CodeXdev thanks. Your workspace design is awesome.
Share Code link...
Part 2 have in GitHub? I can'ot fine!Pls
nope, it's not in Git. Simple explanation only, thats why.
Source code ?
Animation complete masterclass bro for free❤️❤️plzzz❤️❤️❤️😿add it wanna..learn..animation with full concept❤️❤️😿😿😿
Overwhelmed with your comments.. ;)
what emulator you use ?
In this video, I was running on iPhone 11 Pro Max simulator📱
hey today is 5th september😅
4 years to this video.. still people are watching 😜
For anyone who watch this in 2022, this tutorial no longer works and requires many modifications regarding to the null safety.
I should create another video with null safety and bloc package, what you say?
@@CodeXdev Yes, please do! that will help me a lot and perhaps others.
@@CodeXdev yup please do
Bro there is no proper tutorial...for animation from very basics..like..complete masterclass..please take.your time and add too..bro❤️will be kind from.you
There are tutorials for animations, but of course I am going to plan to create series of video on Animation as its one of the most requested topic for Flutter. I can not give date, bt yes.. very soon :)
Getting so much error on Model Class. Maybe the reason is the new Null-Safety (Flutter v2.2.1). I had created the class from the website you called quicktype.io
Please give me some idea about this topic. Thanks. And by the way, I am your big fan. Thanks a lot for your videos.
one word to say !! this is the best tutorial on bloc. Its very simple and easily understandable.