Have you done the same mistake? What was your first application that you made with Flutter :)
@deepak52834 жыл бұрын
sir when i have run flutter app in emulator,it runs correctly .when i see a emulator the app size is 97 mb,the app size is large .i have doubt if i use flutter for my project app size it would bigger , how to use flutter to develop big project
@prathiv52034 жыл бұрын
sir im new to flutter can u say the order i should start learning *topics*
@siddheshtamhanekar31444 жыл бұрын
We can create stateful widget which contain only counter and give the timer value this will have the same effect. You will not render whole page but just a text widget.
@CodeXdev4 жыл бұрын
True, but that is not scalable solution.. each time we need to update something we have to create StatefulWidget. But, with provider it's just matter of adding new field. 😊👍
@rishadbaniya16794 жыл бұрын
@@deepak5283 its debug mode🤣
@KhushalSonawat Жыл бұрын
Finally someone who explained Provider Consumer concept clearly
@gonzaloencinar41564 жыл бұрын
First time I understand Provider, thanks for the clear example🙃
@CodeXdev4 жыл бұрын
Glad to hear that!
@0fficez0mbie9 күн бұрын
This is the best explanation of Provider that I've seen, and the diagram was perfect. Thank you!
@someshsahu4638 Жыл бұрын
Very nice explanation thankyou so much 🙏🏼🙏🏼🙏🏼
@arslankaleem25933 жыл бұрын
I was using setstate because it is simple to use. And I was confused that why can't we implement a simple setstate rather than a provider package. Now my concepts are clear about state management. Best explanation so far. You are doing an amazing job.
@midnytromeo2 жыл бұрын
This is indeed a best explanation so far about Providers for me.
@vukasinsl1 Жыл бұрын
cant agree more
@deliciafernandes99464 жыл бұрын
That coin sound scared me to death!!!
@the_offroad_diaries4 жыл бұрын
This is the easiest way anyone can understand provider , really a great tutorial
@juliotati4 жыл бұрын
The applause 😂👏🏽👏🏽👏🏽
@rakeshkanna914 жыл бұрын
Júlio Tati took my headphones off to see who that was. Lol
@shubhammittal23673 жыл бұрын
such a clear explanation of provider thanks a lot
@ilcarnation35304 жыл бұрын
been searching for this topic and non has helped me clearly as yours. such a great tutorial & explanation. I've finally understand it & know how to implement it. thank you so much!
@CodeXdev4 жыл бұрын
I am glad that it helped😍
@monisankarbarick16223 жыл бұрын
Best tutorial I have ever seen, thank u
@vukasinsl1 Жыл бұрын
provider explained well. most of the guys overcomplicate using some strange word instead of instances and data, notfier and consumer. great.
@pranthonyaquino3 жыл бұрын
Great explanation, I will avoid this error now! Thanks!
@عبدالقادرعبدالرحمنعبدالله4 жыл бұрын
Very clear, understandable and helpful indeed. Thank you so much.
@CodeXdev4 жыл бұрын
Glad it was helpful!
@SatyaPrakash-qd8em3 жыл бұрын
God bless you bro. Best Tutorial on Provider, original documentation really sucks for Beginners.
@CodeXdev3 жыл бұрын
Thank you.. hope you have seen other videos related to API.
@hackerwhite79574 жыл бұрын
thanks for your tutorials which is the more best than provider can u suggest me ? thanks in advc
@vigneshaithal3 жыл бұрын
Great explanation. Was searching for it whole day. Saved my day.
@sachinmaharjan114 жыл бұрын
Just easy n clear explanation !!
@CodeXdev4 жыл бұрын
Glad you liked it
@furkan45282 жыл бұрын
That was really nice and clear explanation !
@arunodaykumar12733 жыл бұрын
i was doing the same mistake...you solved the problem i was solving from days
@johannesluken9493 жыл бұрын
Great Video! Perfectly explained and definitely the better way to update the UI!
@MWStudiooo4 жыл бұрын
Best video on provider sir✌️👍
@CodeXdev4 жыл бұрын
Glad you liked it
@abhishekdiwakar53793 жыл бұрын
Awesome video mate... Thanks for making this video. It really helped me a lot to understand the provider package.
@ehtixhamamjad2 жыл бұрын
provider ki best video ha hindi and urdu ma ..thank you so much..
@M37Shadow3 жыл бұрын
I love the way you explain
@CodeXdev3 жыл бұрын
Thank you 😊
@ronaldsethoga6673 жыл бұрын
I LOVE YOU SO MUCHHH. You have made me a better flutter engineer. Thank you for your amazing content
@CodeXdev3 жыл бұрын
Thank you so much, welcome onboard :)
@raymondmichael49874 жыл бұрын
I'm about to dive into flutter soon, your channel will be of much help. Can you talk about reduce build size, as I heard flitter produces very large sized apps. Greetings from Tanzania 🇹🇿
@ahmedseddik27483 жыл бұрын
Awesome explanation 👏
@simpleaadmi47362 жыл бұрын
Couldnt be simpler than this video to understand provider.. 😇
@olajumokeadenekan89053 жыл бұрын
What is your opinion on putting an asynchronous function in initState? I see how you used initState here
@CodeXdev3 жыл бұрын
We can invoke async function but we should not wait for it to complete
@abdelrahmanosama17853 жыл бұрын
Great video 👌
@kwesikennedy31134 жыл бұрын
Great video by all standards. I have a list of data with a filter function that shows only items of th list that contain the search, this means populating or repoulating the list on every typed. Is there a way to use the provider to make this efficient
@sameerk129824 жыл бұрын
Thank you for the helpful tutorial.... One Question > Do we have to use this for timer only or we can use this for updating other widgets? How often and in what other situations we should implement this?
@CodeXdev4 жыл бұрын
Hi, Timer is just one of use case. You should use *Provider* for updating data from API, user action, page events and any place where you want to *update part of UI* .
@IraqAbdullah Жыл бұрын
Very nice
@georgematua4 жыл бұрын
Great and simple explanation. Thank you!
@rishavsharma74662 жыл бұрын
THE BEST OUT THERE!
@AliYar-Khan3 жыл бұрын
Good Explanation !!!
@CodeXdev3 жыл бұрын
Glad you liked it!
@acarvey3 жыл бұрын
Excellent tutorial thank you!
@Grovermol4 жыл бұрын
Thanks, the applause kind of suprised me LOL, keep with on this tutorials
@CodeXdev4 жыл бұрын
Thanks, More to come! 👍😊
@prsh19893 жыл бұрын
3:02 Hey Afzal, I know setstate calls build method, and whatever is inside build method is thus rendered again, but if we are calling setstate on a single variable only, then why setstate is not analyzing this fact and only re-rendering that particular variable rather than entire build method? I mean, considering how smart flutter framework is at some place, then how come setstate could not figure out only which part to re-render rather than entire build method (I am taking reference from react where it makes a virtual dom and compare it with actual dom and make changes to only those components which are changed) Edit: Please note that I have watched the entire video, and I know for this provider is introduced. However, I am curious to know as in why setstate couldn't figure this aspect about which I am talking (intelligent rebuild) .
@someorother52723 жыл бұрын
i think even though build is called the entire screen is not rendered.......its only the portion that is connected to the variable is rendered......need to check it in android studio performance monitor
@CodeXdev3 жыл бұрын
So, at the bottom level.. its not repainting the widgets which dont have any change, but yes.. it goes through comparison of widgets and the one whose state has changed is repainted! Overall its not super efficient, but doesn’t even do repaint either.
@someorother52723 жыл бұрын
yeah provider would do alot of good in speeding things up
@Imsety4 жыл бұрын
Thank you! This was the first tutorial where I understood the concept.
@CodeXdev4 жыл бұрын
Glad it was helpful! Like and Subscribe for more useful tutorials in future. 👍😍
@prathiv52034 жыл бұрын
can u say me how long u are learning flutter
@Imsety4 жыл бұрын
@@prathiv5203 I started back in May.
@prathiv52034 жыл бұрын
@@Imsety how much u have learnt
@prathiv52034 жыл бұрын
@@Imsety i have just started to learn can u say from were ur reading
@sushilkhadka80692 жыл бұрын
Why are you using Stateful Widget where we can easily do the same thing using Stateless widget with provider implemented. Is it necessary to update time inside initState method? Please clear me
@raylin41353 жыл бұрын
wow, your presentation is so easily understandable. Just one question: Why Provider.of inside the initState() has to set the listen parameter to false while in other places this modification is not required?
@techtechtuts4 жыл бұрын
in my opinion when you can achieve something with both type of widget ( stateless and stateful ) then it's preffereable to use Stateless Widget, same concept was in react native as well, but now react native also have api for function based components as well. any ways nice content, only problem is improve your audio quality. my videos also have audio problem thought ;)
@gaganjindal21234 жыл бұрын
nice explanation
@CodeXdev4 жыл бұрын
Thanks and welcome😊
@anandmano43753 жыл бұрын
great
@devsbuddy3 жыл бұрын
Hey can I use this with GetX package because I like the way GetX works but for state management I think provider is best option.
@hammadtariq93242 жыл бұрын
Hey, I am new to mobile app development. What do you prefer, getx or provider?
@CodeXdev2 жыл бұрын
I prefer GetX over provider
@Ayan-od8hk Жыл бұрын
I would choose bloc over both. It's late, but what did you choose?
@access02883 жыл бұрын
Sir, I cannot import this provider.dart after having installed the package successfully. Any suggestion please ...
@akshaykaneriya1873 жыл бұрын
please make a video of defferent types of providers and their use, which covers everything about provider. :)
@Himanshukumar-ix5bd3 жыл бұрын
i have a dout the initS is build only once when the whole class is create and you are define the TimerInfo in initS so that's means the the Timerinfo instance and UpdateReamningtime only once so how the data continuously changes plz clear my dout
@manglayadav40224 жыл бұрын
Keep it up 👍👍
@imranhossain35118 ай бұрын
sir if in my provider i am using multiple information. if I update a single information then it is re rendering all widgets where I have used this provider with consumer. how can I fix this?
@apeelsubedi8443 жыл бұрын
You just got a subscriber
@sheelajayakumar68333 жыл бұрын
Is it extends or with using modal class ?
@isozar2 жыл бұрын
I have one question, what's the point of setstate since we have to use provider? Where we should use it?
@fayezalle432 жыл бұрын
alhamdulillah..thank you...
@naingtheawperc38173 жыл бұрын
What is the purpose of getter in TimerInfo class? Can you explain me more about getter you created ?
@CodeXdev3 жыл бұрын
Nice question! _remainingTime is Private variable, Its good practice to create getter setter to access fields. Hope that helps 👍
@sahilkachhap4 жыл бұрын
Bloc vs Provider which is best and sufficient in case of State management.
@CodeXdev4 жыл бұрын
Provider is more like ViewModel and BLoC is based on events and states. If you are more into state management then go with BLoC.
@SergioArroyoSailing4 жыл бұрын
great content man, but I can hardly hear you. Can you please increase the volume? ( I know it's not me 'coz the ads are too loud )
@CodeXdev4 жыл бұрын
Thanks for feedback, improving day by day 😀I cannot modify this video, but in my latest videos you will find much better audio 😍kzbin.info/www/bejne/aoOrp3mMi7qKp9k
@shreyagoel82973 жыл бұрын
very helpful
@CodeXdev3 жыл бұрын
Glad it helped
@averagetekkenplayer83763 жыл бұрын
really helpful, thanks.
@syedashrafquadri63774 жыл бұрын
Many thanks sir ji
@mr.rahman44902 жыл бұрын
video and explanation was good enough but the audio was lower than the intro
@CodeXdev2 жыл бұрын
Yeah, early days of my KZbin. Now its has crispy audio.. Thank you
@dhananjaygavali82663 жыл бұрын
hey nice video. But I didn't understand where do you set value for timer to 60.
@CodeXdev3 жыл бұрын
I highlighted with graphics, that timer initialisation got edited due to flow of video.. it should be in Controller.
@vijaygovinda7192 жыл бұрын
Can you make a video getting data from API using Provider...
@devgabriel68984 жыл бұрын
Is your macbook hot as hell with the build and the emulator running? Mine gets to 80c quite easy.
@CodeXdev4 жыл бұрын
Only when I put it on bed 😂, otherwise 16 gigs of RAM keep me going👍🏼
@devgabriel68984 жыл бұрын
CodeX yeah I have 16 too but temperature raise a lot with emulator
@CodeXdev4 жыл бұрын
I can understand how it feel, I started using VS Code instead of Android Studio... and i make sure everything is closed when emulator n VS is fired! Try using cooling pad, sometime surface also can cause heat..
@TheMr82k4 жыл бұрын
Some points I want to mention, if you have a big widget tree inside the consumer they all will rebuild. But here is the important part that most people don't realize Flutter rebuilding itself doesn't mean it's creating new copies it just checks for changes with its own element tree and only rebuilds new instances of the changed widget.
@CodeXdev4 жыл бұрын
Rightly said, but that comparison for each element takes execution time. We have third parameter in builder of Consumer that holds the child widget (without rebuild), I haven't covered in this tutorial but if needed I will sure explain how that works.
@TheMr82k4 жыл бұрын
@@CodeXdev you can't ignore that. That's how state change happens. The Consumer you used has its build method read the source go there and the print command. It will print you that over and over again every time there is a change in the counter. Also, this isn't how you show people if something is rebuilding or not there is Dart observatory which has a tool that shows the UI that has been rebuild. You need to learn more before making tutorials with incomplete knowledge dude.
@CodeXdev4 жыл бұрын
Appreciate your feedback.
@ronaldsethoga6673 жыл бұрын
@@TheMr82k Out of all the amazing content this man chose to teach us, you just decided to choose a few mistakes and hate all over him? Come on man there are nicer ways of offering alternative solutions and yours isn't it. And in fact this video was very simplified for everyone to understand the basic concepts of Provider, so you can stay at the corner with your big brain while all of us learn from this amazing flutter expert
@1947TamilGamers4 жыл бұрын
bro use stateBuilder ,that is easy to use and have more docs available to know .
@WikkiOnIlluminati3 жыл бұрын
@9:16 I believe you should have taken timer also inside the model class and should have made interface of the model class something like startTimer and stopTimer or pauseTimer
@AhmedElsaadany-ey7ri2 жыл бұрын
Nice video. Also you can replace that stateful widget with a stateless widget that will be better.
@ajaykotiyal4274 жыл бұрын
Thanks for sharing. What is "Real Quick"??
@CodeXdev4 жыл бұрын
🤣🤣 Really Quick 😅
@rede_neural Жыл бұрын
Why flutter didn't created a function like setState(this)? Wouldn't be possible?
@praveenkanwar32614 жыл бұрын
I am fetching the data from API. but at first I get error receiver null on Consumer and then when the data is loaded the error goes away. How to fix it?
@CodeXdev4 жыл бұрын
Your consumer will only call once you notify from your model. Make sure that you are not calling notifyListener before you successfully loaded the data!
@rsocial4532 жыл бұрын
Thank you
@mztanvir4 жыл бұрын
very helpful...
@PriyanshuRaj-oc4tk4 жыл бұрын
Nice one there🔥👍
@CodeXdev4 жыл бұрын
Thanks 🔥
@thatsenam91834 жыл бұрын
Love From Enam
@someorother52723 жыл бұрын
what if we use a seperate widget class for the timer and then call the same in parent......that way your timer will get updated and build will not be called........ although using provider or value listenable builder will also give the same result
@bascelik914 жыл бұрын
Maybe I am mistaken and please correct me if I am, but I think that flutter will rerender only variables from setState method, which are assigned to widgets and not whole widget tree.
@hyungtaecf3 жыл бұрын
It will rerender the widget it was called and all the children widgets that don’t have a const constructor
@isozar2 жыл бұрын
God bless u!!
@2SourceFort3 жыл бұрын
observatory listening On********* How to solve this problem ?? Please help me
@arqamhussain82983 жыл бұрын
why we made listen : false 11:20 , it's difficult for me to grab the concept . Can anyone explain this ? thankyou !
@sumitrawat22892 жыл бұрын
Brother plz help ! I have 2 months left for the completion of my graduation , i know the basics of flutter , api , few sorting algorithms . How can i be job ready as flutter developer in 2 months .?
@derencewalk4 жыл бұрын
Thank you for this!
@AliAbdullah-oi3wc3 жыл бұрын
thank you!
@CodeXdev3 жыл бұрын
Welcome!
@ashutoshaswal4 жыл бұрын
bro I need your help in provider package. I am getting a bug. I am using two consumer one is returning a text widget and another is returning a listview widget my text widget is showing the lenth of the list used by listview. Every time I am adding a element in list the text widget listen to changes and update itself but that's not the case with listview. I tried to debug this by putting a print statement just before returning listview in consumer and actually that print Statement get invoked but why the listview is not updating then?
@CodeXdev4 жыл бұрын
Hey Ashutosh, If you can share your code snippet using DartPad or something that will be helpful. Just make sure, you are using MultiProvider.
@onuryldrm18404 жыл бұрын
Allah razı olsun.
@aqeelshamz3 жыл бұрын
Thank youuuu💙
@AbhiKumar-my2uz4 жыл бұрын
loved it!!!. bro could you design a complex app using provider
@blackmakerblm924 жыл бұрын
I am calling the Provider.of(context) in build function (flutter web ) every time i hover the page the build function is called please how can i solve that
@CodeXdev4 жыл бұрын
Calling Provider from build is totally fine, theres something other than this which is causing build to call on hover.. code snippet would help to understand problem. How about posting the issue on FB group or StackOverflow?
@blackmakerblm924 жыл бұрын
@@CodeXdev i have comment your post on facebook with a code snippet
@amonchowdhury77314 жыл бұрын
Best
@mohamedahsan8035 Жыл бұрын
❤🎉
@guidoc35184 жыл бұрын
My provider IS working fine on debut mode. But when i build the app It doesn't work.
@rakibul17653 жыл бұрын
you deleted the initial value= 60. then where 60 on countdown start value are coming from?
@CodeXdev3 жыл бұрын
Thats editing glitch.. 60 is there 🤪
@algeriennesaffaires70173 жыл бұрын
I see too much lines just for a simple app, things will get complex if the project is big
@arshadkhanSherani4 жыл бұрын
Thank you for the helpful tutorial. Sir, I working on a comments page like Facebook. I have a list of posts using ListView.builder. I have a new screen for comments whenever a user comments on the post then I want to increment the comment on the listing page. I'm stuck on this. how can I do this? I'm using Flutter Provider. Thanks
@Abhishvek4 жыл бұрын
I suggest you to watch this video kzbin.info/www/bejne/noO2pXSjoLmWgLs might help you😁
@francescofreddi43744 жыл бұрын
if i use home: Provider() instead of home: ChangeNotifierProider() in minute 7??? whats change behind the scenes? that i cannot understand!!
@yakoubtarkaoui25864 жыл бұрын
thank you, sir, for this tutorial can you tell me what's your laptop version
@CodeXdev4 жыл бұрын
macOS Catalina Version 10.15.3, is that what you needed?
@abbas_tfu4 жыл бұрын
@@CodeXdev 😂
@yakoubtarkaoui25864 жыл бұрын
@@CodeXdev yeah thank you I ask for I will buy one thank you again 😀