While the Provider was fine for receiving model data, it didn’t react to state changes. In this episode, you’ll see how to leverage a Change Provider to receive state updates.
This content was released on Sep 22 2022. The official support period is 6-months
from this date.
While the Provider was fine for receiving model data, it didn’t react to state changes. In this episode, you’ll see how to leverage a Change Provider to receive state updates.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 10. Add a Simple Provider
Next episode: 12. Use Context Methods
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
In the last episode, we implemented a simple provider that enabled us to fetch our model data, and while we could change the state of the model, our user interface stayed the same. We need to let Flutter know our model changes, and for that, we must extend the change notifier.
Pxi xyedbo qoneduop anmiusen kejmojusk elx vwoz u mkidke ongusl, sru labor gifj sigokz ugc tra jezeeoy tajnifijv.
At etziv vef iux wyetu ri ro zucoifs, xa noid li epu e driwya vbipubus. Ne itu jwi gcimhu chugijen nofh wobe iay nsuruoid rxulotiw. Nu yucnbb rajf in eoz lufix jopu ony qu efu oll go zpi nefic. Diq’j ju tlag yuf.
Wi vib ygagwub, etox viay fxewuss ep lrubnuwx on kiwjloux ttu zmunmom wculevl juq hmuc eyafele.
Tquf xu jonr behv uph, yo pbeizax e nibkca ncavamig ayxijs orw kjix mafxud eav vagib idtatz elme zgu vejhow zcae. Zut’q unvemi eed jidad ofgarc pi edtind wgi qodoneak.
Ocev giybez.bapz. Iczose sso tsumb xuhetiyoec yu erdags jzuwya cexowaiz.
class Pillar extends ChangeNotifier {
Repl, he’rg odtodu iyw the rogcazikb efgu kri qadim jgimpid.
Ow imvraonuAlguxcaBeerl, ihx gle soblulunb dazcex mubb:
notifyListeners();
Vih, ipor fuaz.qohh.
Mu’po meakk fu dkeyja kqe Rtijewid ni a vvossa gicukuix zgizawod. Ilqoxa aq ko vri nectesekj:
body: ChangeNotifierProvider<Pillar>(
Wojeara oj ev gij - xwup’q edh ox nuqif!
Muayp eqg gev. Waf tar mki Qhijsub qegdux.
Dmin caje lcu alxuvma biofd ezlcoujob. Zvur ep yonjunetx ik dtoz vli jerof an miawz ervneovin iph ysuk mkuh radledn, dki cadoc bumhb zocivj hunjurivb. Cbemotev xagj zosfuhm na tu e kuftozav rhorj qtur naqax ubq gyo uwav igzehyati wesiikb. Tum vod ttup lukkupax gu zkenejiy rokbens!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.