instead of consumer we can also use context.watch( ) . Your efforts deserves love. It would be better if you talk about those methods of provider like context.read( ) , context.watch( ) . what are they ? why and when do we use it ? Just explain all of things in your way. :)
the amount of efforts you have put for us to learn flutter,provider and each and everything related to flutter is so much appreciated. i wanna thankyou so so much and i wanna kiss you ummmaahhhhhhhh 😘😘😘😘
the code is not working properly in the list of selected items. The widget is building from scaffold not from list view. The number of builds increases after every click in myfavouriteitem screen
Very helpful video and believe or not..its very simple now to provider just bcz of ur explanation..Love it....but sir. I have a question..in that ListView all items gets rebuild while clicking on single list tile...I have added a random colour to list tile text colour...and when I click on any item all items colour changed..that means entire ListView rebuilds while clicking on single item...how to avoid it...means to prevent rebuilding of other items which is not clicked...I have used this function....Color randomcolor() { }
thanks for giving the insight. I have an observation about list . though logic of index is correct when displaying the list. but it is showing selected item as per previous screen. It should show selected item as selected. May be a logic added to make all items in the list as selected. But then it will then effect while navigating back to previous screen. May be I am wrong in my understanding let me know your opinion.
jab me apka logic building dekhta hu tab sab samaj atahein but me khud logic building kar nahi pata hu ,logic building ko kese improve karo .From bangladesh . Take Love
furthermore, instead of using inkwell on container as you have been doing to create buttons and icons, a straight use of elevated button and icon button will require lesser code.
Sir, favourite item list main listen false kr do, is se widget rebuild hoga and removed item instantly remove hoga and widget rebuild hone se instantly disappear bhi jo jayega .........❤
Sir boht acha samjhaya.apne. but last screen jo apne banai MyFavoriteScreen us me apne ye wali line likhi: final favoriteProvider = Provider.of(context); yha apne listen: false use nh kia jis ki waja se pora page refresh ho rha h or item remove hote hue dikh rhe hen. agr me listen: false use krta hon yha pr tu back pr item remove ho rhe hen but screen pr changes show nh ho rhin jab tk men screen ko back ja ke again MyFavoriteScreen pr nh ata mujhe changes show nh ho rahin.
i need help.. when you restart app, the favorite list is gone. how to fix that? i mean i want to keep them in favorite list while restarting/close app and reopen.
Hello, I have a unique use case for state management. App has a WidgetClass A which can call WidgetClass B, or C or D based on some condition. The variable inside the provider class should be initialized (before loading and not after onTap or something) to some value based on which WidgetClass is being called B or C or D. For example: if B is called then set the var to 2, if C is called then set the var to 3 and if D is called then set the var to 4. If I try to do it in initState(), then it throws this error: setState() or markNeedsBuild() called during build. Would you be able to help me here?
JazakAllah bro , you are doing great. Will you start a new serires of realife application clones using provider and nodejs or some api integration in future?
It requires a lot of time to make such a big application and the record the content, i afraid i won't be able to do that but i promise i will teach you concepts that helps you build such application.
@@thetechbrotherss yeah there are some minor changes and when you click on the favourite list page it assigns the same item number as it is in favourite page
void initState() { // TODO: implement initState homeViewViewModel.fetchMoviesListApi(); super.initState(); } . This is getting call everytime i am coming to screen . How can use state value instead calling apI evertyime . I have added tab bar navigation. Once i come to Home tab from other it cal api again . i want to restrict the same. Please suggest
Bro your teaching way is the best way in the world......
Thank you so much 😀 do share with your friends
JazakaAllah sir bohot achy sy samjhaya
thanks
have to say i am more comfortalbe with using state management while progressing through this series. Great work!
great to hear this
take love from Bangladesh
Thank you
completed whole playlist and worth it more project for this playlist please
ok coming more
instead of consumer we can also use context.watch( ) . Your efforts deserves love. It would be better if you talk about those methods of provider like context.read( ) , context.watch( ) . what are they ? why and when do we use it ? Just explain all of things in your way. :)
More things are in pipeline and are coming your way in order so people can understand it correctly. Thank you for your feedback.
the amount of efforts you have put for us to learn flutter,provider and each and everything related to flutter is so much appreciated. i wanna thankyou so so much and i wanna kiss you ummmaahhhhhhhh 😘😘😘😘
It i add value please subscribe and share with your friends
thank u so much for information tuturial keep it up asif bhai😍😍
Always welcome
Thank you so much bhai keep uploading
I will try my best
the code is not working properly in the list of selected items. The widget is building from scaffold not from list view. The number of builds increases after every click in myfavouriteitem screen
Please follow the whole playlist, i am sure you must be doing something wrong. User consumer for specific widget building.
Mashaaa Allah jee Phenomenal.
Thank you
Very helpful video and believe or not..its very simple now to provider just bcz of ur explanation..Love it....but sir. I have a question..in that ListView all items gets rebuild while clicking on single list tile...I have added a random colour to list tile text colour...and when I click on any item all items colour changed..that means entire ListView rebuilds while clicking on single item...how to avoid it...means to prevent rebuilding of other items which is not clicked...I have used this function....Color randomcolor() { }
I have explain this in video.
❤ Amazing bro
share with your friends
Love from kohat ❤ I'm a new flutter 😅 My entire software house is watching your video and there are about 70 members
That's awesome!
@@thetechbrotherss sir aap company k leye work karte ha ya playstore ads..
thanks for giving the insight. I have an observation about list . though logic of index is correct when displaying the list. but it is showing selected item as per previous screen. It should show selected item as selected. May be a logic added to make all items in the list as selected. But then it will then effect while navigating back to previous screen. May be I am wrong in my understanding let me know your opinion.
Didn’t understand
waiting for more videos :)
coming very soon.
when will you uploading more lectures, we need urgently, and make some provider lectures on api integeration
Sir this week may be, when i get free i will make some new videos.
new video is uploaded
@@thetechbrotherss thank you sir
jab me apka logic building dekhta hu tab sab samaj atahein but me khud logic building kar nahi pata hu ,logic building ko kese improve karo .From bangladesh . Take Love
ap practice karin, aik din ap khud logic build krna sekh jaien gy
Sir , When rest of videos are coming? Please Upload ..
May be from Monday, this week i will spend sometime with my family.
new video is uploaded
yes, I learn and implement also ..thnq
furthermore, instead of using inkwell on container as you have been doing to create buttons and icons, a straight use of elevated button and icon button will require lesser code.
Agree, since we are learning so I’m doing I’m sure their other betters ways through which we can do it
Amazing
Thanks
First of all thank you bro for making these wonderful lectures.
And second is that would you like to make series on bloc also in near future?
Yes, do subscribe and share with your friends.
Awesome Tutorial Sir
thank you
Amazing series ❤
Thank you
Very nice video.
thanks
very nice one
Thank you
just like wow
thanks
Sir, favourite item list main listen false kr do, is se widget rebuild hoga and removed item instantly remove hoga and widget rebuild hone se instantly disappear bhi jo jayega .........❤
g
Sir boht acha samjhaya.apne.
but last screen jo apne banai MyFavoriteScreen us me apne ye wali line likhi:
final favoriteProvider = Provider.of(context);
yha apne listen: false use nh kia jis ki waja se pora page refresh ho rha h or item remove hote hue dikh rhe hen.
agr me listen: false use krta hon yha pr tu back pr item remove ho rhe hen but screen pr changes show nh ho rhin jab tk men screen ko back ja ke again MyFavoriteScreen pr nh ata mujhe changes show nh ho rahin.
listen false set kr do
i need help.. when you restart app, the favorite list is gone. how to fix that? i mean i want to keep them in favorite list while restarting/close app and reopen.
Watch my playlist about hive r sql to save data locally
use shared preference to store favorite list and u can keep them even after restart.
Hello,
I have a unique use case for state management.
App has a WidgetClass A which can call WidgetClass B, or C or D based on some condition.
The variable inside the provider class should be initialized (before loading and not after onTap or something) to some value based on which WidgetClass is being called B or C or D.
For example: if B is called then set the var to 2, if C is called then set the var to 3 and if D is called then set the var to 4.
If I try to do it in initState(), then it throws this error: setState() or markNeedsBuild() called during build.
Would you be able to help me here?
use binding
@@thetechbrotherss thanks. I would appreciate if you make a video on this. I really like your explanation.
Helpful! 👌👌
I'm glad!
sir logic building ky say improved karay is pr ap ek video bana kr samja dy ya muejy is comment pr answer kr dy thanks
Practice kro bus
Sir getter method use krna kio zroori hai kio k shaid os k bgair bhi kam chl skta hai
is k baghir bhi ho skta ha
Hm extends or with class ma kb use krain gy provider ma?? Ya smjha do
flutterbyexample.com/lesson/extending-classes-inheritance
JazakAllah bro , you are doing great. Will you start a new serires of realife application clones using provider and nodejs or some api integration in future?
api integration series is already uploaded on this channel, check its a complete play list with 24 videos. You will love it
Yeah , I have checked that. My next playlist will be that for sure ❤️
thank you a lot ❤❤
share with your friends
" Local variable 'FavouriteItemProvider' can't be referenced before it is declared " how to solve this error???
Create the provider like i did
Will it work for list? I mean if wanna send 4-5 string will it work?
Yes
Thank you so much
You're most welcome
❤️❤️
Thank you do like the video and share with your friends.
not working also your screen, some items can not remove and add
Please follow the playlist from start to get the context and carefully listen i have explain this
sir, please make a detailed tutorial on getx state
management
Getx playlist is in plaining phase, it will be out ASAP.
please complete this playlist asap
ok
Sir please make the e commerce online food ordering app using flutter provider and nodejs mongodb and geo location api for filter the nearest hotels
It requires a lot of time to make such a big application and the record the content, i afraid i won't be able to do that but i promise i will teach you concepts that helps you build such application.
Sir pls bnae ga e-commerce app lazmi .pls
Sir your videos content and teaching style is awesome ❤️
@@thetechbrotherss thank you sir
@@thetechbrotherss waiting your promise.😍
please create series on notification in flutter
Its in pipeline
Greate sir
Thank you
List view builder item hoti he vo yaad hoti he apko
hahhahaha
Can you provide me a , a course on flutter , I can pay for that, ,plz tell
I don't have it but you can go with angela yu coruse on udemy.
sir please provide the source code of this video🙏🙏🙏🙏
Please learn from videos
ur GOAT
Thank you
If you want right item number on favourite item list then follow this code and don't want to select or unselect the favourite from inside
Widget build(BuildContext context) {
final favouriteprovider = Provider.of(context);
return Scaffold(
appBar: AppBar(
title: Text('Favourite Item List'),
),
body: Column(
children: [
Expanded(
child: ListView.builder(
itemCount: favouriteprovider.selecteditem.length,
itemBuilder: (context, index) {
return Consumer(
builder: (context, value, child) {
return ListTile(
title: Text(
'Item ${favouriteprovider.selecteditem[index]} '),
trailing: const Icon(Icons.favorite),
);
},
);
}),
)
],
),
);
}
Don’t you think its the same ?
@@thetechbrotherss yeah there are some minor changes and when you click on the favourite list page it assigns the same item number as it is in favourite page
@@thetechbrotherss Bro your work is just awesome and i am learning from your playlist only . Keep it up😀
thanks for this code its helpful
void initState() {
// TODO: implement initState
homeViewViewModel.fetchMoviesListApi();
super.initState();
} . This is getting call everytime i am coming to screen . How can use state value instead calling apI evertyime . I have added tab bar navigation. Once i come to Home tab from other it cal api again . i want to restrict the same. Please suggest
user all tab in same widget
❤❤❤
thanks