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.
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.
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
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....
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.
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?
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.
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.
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.
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.
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 👍
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));
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.
@@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)
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.
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 :)