Part - 5 || Provider Count Example with Change Notifier & Consumer -Provider State Management course

  Рет қаралды 29,033

The Tech Brothers

The Tech Brothers

2 жыл бұрын

In this video we will practically implement provider for the first time. We will implement count example with provider, we will discuss how we can change state, what is change notifier, how change notifier work. What is global context, how this global context work.
► Join My Facebook Group ➜ / 983554978866765
_____________/Connect On Social Media\____________
► linkedin:➜ / axiftaj
► Instagram:➜ / axif_taj
► Facebook:➜ / aaxiftaj
► Twitter:➜ / axiftaj
► GitHub:➜ github.com/axiftaj
► Hire me on Fiver:➜ www.fiverr.com/asif_taj
=========================================
► Rest Api Playlist : ➜ • Flutter REST API Tutor...
► Flutter Blog App Playlist: • Flutter Blog App with ...
►Covid-19 Tracker App using Rest API's :
• Create Coronavirus (CO...
►Firebase Blog App Android Java:
• Firebase Blog App - Ho...
►C++ Tutorials :
• C++ Programming Tutori... .
flutter, flutter provider, why state management, provider, provider, stateless widget, stateless, state management, flutter provider state management road map, provider
For business queries : axiftaj@gmail.com
Thank you for watching my channel do give feedback about this video.
#codewithasif #provider #statefulwidget #widget #stateful #flutterprovider #statemanagement #flutter #road #map

Пікірлер: 148
@khabibali4967
@khabibali4967 Жыл бұрын
Great tutorials on UTube. Much better than paid courses. You are truly legend guy.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@_sonu_
@_sonu_ Жыл бұрын
I really loved this Video. What I learned is ... 1. NotifyListener: It is a widget that wraps the part of the UI that needs to be updated when the state changes. It listens for state changes and triggers a rebuild of the wrapped widget subtree. 2. Provider.of(context): This syntax is used to access the provided instance of a specific class within the widget tree. It retrieves the nearest ancestor Provider widget of type Class and returns the instance. 3. Consumer: It is a widget that allows accessing and using the provided data within its subtree. It receives the provided instance of a class and rebuilds its child widget tree when the state changes.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
👏👏
@irfanullah2910
@irfanullah2910 10 ай бұрын
"Fantastic tutorial! 🚀 The way you explained Provider with a clear and relatable example made it super easy to grasp. Your teaching style is on point, and I walked away with a solid understanding of how Provider works. Thanks for making complex concepts feel so accessible!" 👏👏👏
@thetechbrotherss
@thetechbrotherss 10 ай бұрын
Glad it was helpful!
@qasimjasim7056
@qasimjasim7056 2 жыл бұрын
Got all concepts about provider thanks
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Glad you liked it, do share with your friends.
@NoorMuhammad-ol6bq
@NoorMuhammad-ol6bq 2 жыл бұрын
amazing series.. no body teach likes you.
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you, do share with your friends
@johnmungandi4413
@johnmungandi4413 Жыл бұрын
Your a Master of KZbin nobody can teach like you thank for your stuff..
@thetechbrotherss
@thetechbrotherss Жыл бұрын
subscribe and share with your friends
@narayanpaswan6558
@narayanpaswan6558 Жыл бұрын
Sir your way of teaching is awesome.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you share with your friends
@nitinjiwnani480
@nitinjiwnani480 Жыл бұрын
Amazing series, thankyou sir.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Glad you like it share with your friends
@rafhanchaudhary9140
@rafhanchaudhary9140 2 жыл бұрын
very very helpful video and easy to understand...
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you
@saadansari1643
@saadansari1643 8 ай бұрын
Really appreciate you brother. Very detailed tutorial. ♥
@thetechbrotherss
@thetechbrotherss 8 ай бұрын
thank you
@saddamwassan897
@saddamwassan897 9 ай бұрын
thank you sir It is one of great videos of yours...
@thetechbrotherss
@thetechbrotherss 9 ай бұрын
thank you
@trickswithandro749
@trickswithandro749 Жыл бұрын
Yr Aik to ya acha channel boht Muskil sy miltay hai. lkn chalo mil to gaya KZbin mai asa hindi ka flutter k tutorial kider be ni milty. Thanks Bro Itna Acha explain keya ap nae
@thetechbrotherss
@thetechbrotherss Жыл бұрын
To phr subscribe r share kr do
@trickswithandro749
@trickswithandro749 Жыл бұрын
@@thetechbrotherss Subscription done nd share be kr leya group mai :-)
@softologytechbd1266
@softologytechbd1266 7 ай бұрын
Your explanation is very effective for us
@thetechbrotherss
@thetechbrotherss 7 ай бұрын
Thank you
@shaheendevelopers
@shaheendevelopers 2 жыл бұрын
Ma sha Allah Sir G keep it up
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you
@masonliam6042
@masonliam6042 Ай бұрын
you taught the provider in just one video.
@thetechbrotherss
@thetechbrotherss Ай бұрын
The check my mvvm course with provider 😁
@navaidali99
@navaidali99 Жыл бұрын
This deserves million views.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Then share with your friends
@navaidali99
@navaidali99 Жыл бұрын
@@thetechbrotherss already doing so
@moeezahmedkhan
@moeezahmedkhan 17 күн бұрын
amazing tutorial 👍
@thetechbrotherss
@thetechbrotherss 17 күн бұрын
Thank you! Cheers!
@waizumer-me5qw
@waizumer-me5qw 2 күн бұрын
Great
@thetechbrotherss
@thetechbrotherss 2 күн бұрын
Thanks
@Moment95817
@Moment95817 4 күн бұрын
Amazing Tutuorial Asif Bhaiya , Bas Yeh Puchna tha ki hame saare ke saare State Management sikhna hai kya(provider,Get X,Riverpord,Bloc)
@thetechbrotherss
@thetechbrotherss 3 күн бұрын
3 seekh lo including bloc and 2 of your choice
@Moment95817
@Moment95817 3 күн бұрын
@@thetechbrotherss ok
@FluDeveloper
@FluDeveloper Жыл бұрын
Bro love u ❤️💯
@thetechbrotherss
@thetechbrotherss 11 ай бұрын
thank you
@Amjad_Sajjad329
@Amjad_Sajjad329 Ай бұрын
Very nice video ❤.
@thetechbrotherss
@thetechbrotherss 20 күн бұрын
Thank you 🤗
@aakashdeveloper4669
@aakashdeveloper4669 Ай бұрын
Thanks for this
@thetechbrotherss
@thetechbrotherss Ай бұрын
My pleasure!
@waleedazhar2662
@waleedazhar2662 2 жыл бұрын
You are amazing Sir ..
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you do subscribe and share with your friends.
@FlutterWithOsama
@FlutterWithOsama Жыл бұрын
Ma sha Allah good work
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@FlutterTutorial
@FlutterTutorial Жыл бұрын
Superb keep it up. 👍
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@mohsinishfaq1744
@mohsinishfaq1744 Жыл бұрын
boahat achi video h recomended
@thetechbrotherss
@thetechbrotherss Жыл бұрын
share with your friends
@commercekv8422
@commercekv8422 10 ай бұрын
Awesome brother
@thetechbrotherss
@thetechbrotherss 10 ай бұрын
Thank you
@Nikh_03
@Nikh_03 3 ай бұрын
sir why you use statefull widget when we use provider. You are using statefull widget in counter_example file.
@thetechbrotherss
@thetechbrotherss 3 ай бұрын
to use init state
@shaheendevelopers
@shaheendevelopers 2 жыл бұрын
A good teacher
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you
@jeevanstha57
@jeevanstha57 Жыл бұрын
Nice explanation
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@azam_izm
@azam_izm 2 ай бұрын
*normally asif sir teaching method is excellent but this episode is full of confusion* 😂
@thetechbrotherss
@thetechbrotherss 2 ай бұрын
hahahaha I disagree, btw end of this playlist you will say waoo
@jaspreetsingh-nh7kn
@jaspreetsingh-nh7kn Жыл бұрын
You are amazing
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@jobsnews615
@jobsnews615 Жыл бұрын
love you bro you are greate. I am from india please provide paid course step wise in one serius
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Bro check my flutter bootcamp 2022 playlist, it's in proper order. You can support my work through sponsoring me coffee.
@tawhidulislam6090
@tawhidulislam6090 7 ай бұрын
Thank you sir for your effort it really helped but I have one question how did you remove all the log form run option
@thetechbrotherss
@thetechbrotherss 6 ай бұрын
log ?
@RANJEETKUMAR-wz4dg
@RANJEETKUMAR-wz4dg 2 жыл бұрын
thanks
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Glad you liked it.
@vinayTshetty
@vinayTshetty 6 ай бұрын
@15:25 even though the listener is false. the widget is building again. without the consumer Please Check it.
@thetechbrotherss
@thetechbrotherss 6 ай бұрын
ok
@kifayatUllah712
@kifayatUllah712 Жыл бұрын
One thing really important to understand is that notifyListeners() function causes the consumers to rebuild themselves.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
yes
@amisheth5740
@amisheth5740 21 күн бұрын
sir aapne bahot acbe se sikhaya par pls ek chij bataie agar provider.of ki jagah pe watch method use kare to kya fark padta he aur consumer widget ki jagah pe selector widget use kare isme to kya fark padega pls if possible explain with example
@thetechbrotherss
@thetechbrotherss 20 күн бұрын
ni parhta
@androidterminal3924
@androidterminal3924 Жыл бұрын
which theme are you using in android studio?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Dracula
@MrHaji-kp3mm
@MrHaji-kp3mm Жыл бұрын
sir♥
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Thank you
@izharbadshah7386
@izharbadshah7386 2 ай бұрын
Sir requirements k mutabiq agar hum count k elawa aur class banana hai wo globalcontext mein kesi pass karna hai matlb different classes
@thetechbrotherss
@thetechbrotherss 2 ай бұрын
multi provider ma add kr do, yeah cheez mainy btaie the
@danialahmed5168
@danialahmed5168 2 ай бұрын
you left a confusion there. does we control rebuld either using consumer or using listen property
@thetechbrotherss
@thetechbrotherss 2 ай бұрын
Oh its first video follow next your doubt will be clear
@rubashussain1194
@rubashussain1194 5 ай бұрын
With listen:false only the consumer widget is rebuilding but at runtime no change is occuring on screen ,however using selector makes me acheive runtime change on screen , kindly guide me through this
@thetechbrotherss
@thetechbrotherss 5 ай бұрын
consumer will still be building if it's not than check your code
@UsamaBinAkram
@UsamaBinAkram Жыл бұрын
Sir g jab "_count ++" increment hota hai , wese _count itself ek variable hai to hum isy direct call kiun ni kr sakte in our screen like , CountProvider._count.toString(), get method use kiun hota hai , aur iska basic role kia hai yahan.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
smjh ni aya apka question
@surajkhare2520
@surajkhare2520 8 ай бұрын
Hello Sir, I'm having an issue in the initstate() function, "The value of the local variable 'countProvider' isn't used. Try removing the variable or using it." , I am practicing in VScode.
@thetechbrotherss
@thetechbrotherss 8 ай бұрын
bro it doesn't matter which IDE you are using, you are doing something wrong
@geenews6207
@geenews6207 Жыл бұрын
count_example class main count_provider class ka instance banay ki kia zarorat thi consumer widget kay hotay hovay?
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Please watch video carefully o have explain every thing in the playlist
@Quick_Code
@Quick_Code 11 ай бұрын
This like High order function or factory functions.
@thetechbrotherss
@thetechbrotherss 11 ай бұрын
g
@MuhammadAhmed-fm4vs
@MuhammadAhmed-fm4vs Жыл бұрын
ap na part 5 me bht speed sa code type kiyee ha but kuxh mushkil ho gya smjhna is ko
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Please follow the playlist from start it will help you get the context
@shivaagrahari5525
@shivaagrahari5525 Жыл бұрын
i have a smaal doubt why you make count as private variable and use getter method ?? you can do this things directly on public variable
@thetechbrotherss
@thetechbrotherss Жыл бұрын
You can do it publicly as well.
@ahmedshaikh789
@ahmedshaikh789 8 ай бұрын
please make a video on agora video calling sdk for flutter
@thetechbrotherss
@thetechbrotherss 8 ай бұрын
ok
@indrajeetjyoti9020
@indrajeetjyoti9020 Жыл бұрын
can you make series on bloc and unit testing in flutter
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Yes i will
@AbhishekGupta-dn4gz
@AbhishekGupta-dn4gz Жыл бұрын
sir please make a playlist on getx also.
@thetechbrotherss
@thetechbrotherss Жыл бұрын
ok bro
@MaryamF-fn7bv
@MaryamF-fn7bv 3 ай бұрын
Provider.of(context) context is showing error
@thetechbrotherss
@thetechbrotherss 3 ай бұрын
please follow carefully, i think you are doing something wrong
@MuhammadAhmed-fm4vs
@MuhammadAhmed-fm4vs Жыл бұрын
Bro muja 1st 5 parts me sa part 5 ki smjh nhi ayee
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Ap practice kro tutorial phr sy dekho a jay ge msjh
@developerpoint8507
@developerpoint8507 Жыл бұрын
sir why the initState() is rebuild every second
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Wo ap ka widget build hony sy pehle call ho jata ha
@restaurantrecipebyhafsa
@restaurantrecipebyhafsa 4 ай бұрын
bhai aap bht sari cheezon ki detail ni btate. jese aapne consumer aor change notifier ka bas yeh btaya k kahan use krna hai kidhr likha hai but what is changenotifier in provider. what is its purpose in provider kkuch samajh ni aya. kindly thora explain rdiya karein.
@thetechbrotherss
@thetechbrotherss 4 ай бұрын
ok
@swagatbaruah522
@swagatbaruah522 Жыл бұрын
Could plz explain what does the keyword 'with' did ?? Or just refer some resources to learn about it... Welll...mixin is quite a hard topic for me to understand exactly...😥😥😥
@thetechbrotherss
@thetechbrotherss Жыл бұрын
I’ll create a detailed video about this
@swagatbaruah522
@swagatbaruah522 Жыл бұрын
@@thetechbrotherss tnx bro :)
@dev.faizan
@dev.faizan Жыл бұрын
why dont you use stateless ,we are not using setState
@thetechbrotherss
@thetechbrotherss Жыл бұрын
I have explain everything , you can used stateless if you want to it will still work
@nazmusas
@nazmusas Жыл бұрын
12:30
@thetechbrotherss
@thetechbrotherss Жыл бұрын
?
@nazmusas
@nazmusas Жыл бұрын
@@thetechbrotherss just a marker to mark a important point for me. Keep up the teaching bro, you teach amazing!
@shaleemjoshua3632
@shaleemjoshua3632 10 ай бұрын
i got error in ChangeNotifierProvider
@thetechbrotherss
@thetechbrotherss 10 ай бұрын
share error always to get the answer at first place
@pagalworld8155
@pagalworld8155 2 жыл бұрын
Superb MashAllah Stylish
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Thank you
@flutter_crafter
@flutter_crafter 2 жыл бұрын
brother, I have a question What is the difference of write code outside the setState, inside the setState and after setState. like below? counter++; setSate(({ count++; }); counter++;
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
Please watch my video about what is stateful widget. Mean while the function of set state is to refresh the view of screen or all the widget from return statement. if you out the inside or out side the count++ to set state it doesn't matter you can use it any where but we use set state to refresh the view.
@naveedfaruq.
@naveedfaruq. Жыл бұрын
When a call is made by setstate the widget rebuids if you writes a function after the setstate it will not be rebuild
@user-gp1nx6dp2f
@user-gp1nx6dp2f 11 ай бұрын
sir plz, add english sub titles
@thetechbrotherss
@thetechbrotherss 11 ай бұрын
ok bro
@AliButt-fk7oz
@AliButt-fk7oz Жыл бұрын
ChangeNotifierProvider() nhii aa rahaaaa
@thetechbrotherss
@thetechbrotherss Жыл бұрын
import the correct library double check it
@AnupUpadhayaya
@AnupUpadhayaya 2 жыл бұрын
eska source code share kardena jara
@thetechbrotherss
@thetechbrotherss 2 жыл бұрын
please learn from videos, i don't want to share source code. I hope you can understand.
@AnupUpadhayaya
@AnupUpadhayaya 2 жыл бұрын
@@thetechbrotherss Thanks
@syedshabbarraza7858
@syedshabbarraza7858 3 ай бұрын
thori si mushkil example thi
@thetechbrotherss
@thetechbrotherss 3 ай бұрын
practice kro in sha Allah sub asan ho jay ga
@SuhailAhamad-ju1by
@SuhailAhamad-ju1by 5 ай бұрын
Bhai itna Ganda kaun padhata h yaar ... Tune dimag ki ****
@thetechbrotherss
@thetechbrotherss 4 ай бұрын
main parhta hu
@SuhailAhamad-ju1by
@SuhailAhamad-ju1by 4 ай бұрын
@@thetechbrotherss it's true brthr... You have a lot of confusions with your own thoughts. We're here for learning not for watching you boring things.
@azam_izm
@azam_izm 2 ай бұрын
​@thetechbrotherss 😂😂😂
@tasaddaqrandhawa4219
@tasaddaqrandhawa4219 Жыл бұрын
@thetechbrotherss
@thetechbrotherss Жыл бұрын
❤️
@anasmalix8593
@anasmalix8593 Жыл бұрын
i print date and time here in the consumer widget i think dateTime will not update it self with out any cotroller but it is updating itself and i cant understand why it is updating itself, Consumer(builder: (context, value, child) { return Text( value.count.toString() + " " + DateTime.now().toString(),
@thetechbrotherss
@thetechbrotherss Жыл бұрын
Understand the code bro
I failed Flutter Interview but Why ? Flutter Interview Question & Tips
11:13
Who has won ?? 😀 #shortvideo #lizzyisaeva
00:24
Lizzy Isaeva
Рет қаралды 56 МЛН
Looks realistic #tiktok
00:22
Анастасия Тарасова
Рет қаралды 96 МЛН
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 72 М.
Provider 📱 Simple State Management • Flutter Tutorial
5:48
How to Reduce Jankiness in your Flutter App
12:57
Learn App Code
Рет қаралды 10 М.
Flutter Provider Simply Explained
9:08
Learn App Code
Рет қаралды 87 М.
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 335 М.
Mastering Picture Editing: Zoom Tools Tutorial
0:52
Photoo Edit
Рет қаралды 505 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,4 МЛН