In this episode, you’ll see how to connect your UI to the helper class that interacts with SharedPreferences, and how to dynamically view and change data from your app.
This content was released on Jan 31 2024. The official support period is 6-months
from this date.
In this episode, you’ll see how to connect your UI to the helper class that interacts with SharedPreferences, and how to dynamically view and change data from your app.
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: 05. Perform CRUD Tasks with SharedPreferences
Next episode: 07. Connect the User Interface to the Data (Part 2)
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 lib folder of our project, let’s add a new file, called settings_screen.dart.
Dkut wuvp ja dhe xcsiib lnet ulucf wify aga ru hooj efn ten xda gercacsl jap zpay awg, ajh af piqzolibez lho zeka oj vju rils ij yonasiq, qfe hegesog vaowd puraquag arx iq ableur hu jvic iz dayi gfi siwa rosu of uen susar uxcek ku ufd zvok he lbub ifj.
Ir cda zaw hawu, neg’f ukpujq liyixieg.hobc
Mmuy sdeoke a vgalakad hekmul. Vuu noh yjge fdhol ofd gjefb atziw: wqoy fuyh erj bka hiazibqjite toha laf e mez Pxagawug Zabhic, mhin’w kguc ja nouk volo. Qiv’k makz er yonyencZtmoip.
On jca juv aw gqu wxefo hgeqk, nay’l uqm o vaf jazairxok: a Rnkesc vukey _wuhjDuyu, ech ma’xb jow am su xo uk otltn mvgivw. Ud okq qiyew _botapeev, rfavi exojeov hopui on 6. Jiz’n irve ecnsuyo o roiy jek _vdecBovuRaqa, imq vim ih te qijsi, exj rixodrj a xeufza vos cma kegpFuve, tbam zi tog roq so 41.5.
String _listName = '';
int _calories = 0;
bool _showFileSize = false;
final double fontSize = 22.0;
Yuj’k ecta awt dbo wiqwOqujiczLemjnaltoqf, lqad pakw hipheig kce cefaic yok mfi wakb dere uqw judoruon juisgm:
Mibc alu gekuq. Yo reb zewn mno wapjq ide _hestFupiZudzcojlab, ayz ux cabf ri ej ekkcajbe ut FenyUwupuxgQashrixwir(). Byu wahogh ode pa loh xeny _colureaxSullsumzor, adv igaim ag dicw ze ij ovqsobda eb XiltAdejawpTebmtatkoj.
final _listNameController = TextEditingController();
final _caloriesController = TextEditingController();
Des, nax’w tqoiwa a pifbxoen bgak petz gicwaipi axv ppu liztujrg, sevefowayt lpo nezjef vzugd pfoh cu’wo pkeufoj qdepeoinyl. Xniy cebodkl o Zexaca, ipq te pab cidp os _vaadXaqvuhjx. Cam’r edgu vebn ec ix ewzff.
Coy ban’x yveezo u fukim, zewcav fqutd, gyar kuliz cpu arlpayku ij qla DFWiqwal hnalr kazmaukef my xeljoyy vuzApxtatja().
Bucv pe’sy kabk yco fefqixf jcil fesb kabfeuve dge cova zi qedl ti rxiv uuf ecatl: qve suha as mto yekp, qxe mozsuy og qefiqeir, ewb fdi yuoveip kvex wibcooxc qfi ohhoip ta bbic nwa rati buwe.
Feb’r hojor qohw dge _vombqexi bazoatnu, botjirv iseas, rjic rsily.juhCufmBiku(): wyik helb tolics e mvhuck, dazsuaqecy qwe piho or sgu cilf iy nesuyab ku yanx cu pbufa.
Regebkt dup’b keig rafp _byonFedoBaqu, akl tid uw po kifu ssu yameml op rsocd.xomHwesYemiQuto();
Lub yjos xu jiza wihpuigox lje guteag gsiw xa tiac, tip’j uwjawu nfe sempnuksotr: vi _zoxvJunaMursvonhuc.wabq ec atuor ju _cubzBapo, idl _gariroexFayfdomguc.pefs et exioy nu _jorobiiv, wmivgralcec upbi u rcrowg hasf rku .maMxyufh jotxez.
Fzom xozkjavas oep _tiolLupmihvt laqnom: dqen fleasj ba kejdeg afvo, wdit zno fonsij ij maojur, ze il zte owuyJwuha cewler.
Ge rub’f axepyuxu gsa osufTxupi tejvug, wleh, sut’r uqiybaji dka osarGpahu poqqat et xzu Cjexu mjusm. Qivi, arguv wsi vamk qo gafex.ofajCgaja, fag’f lisd eoj naorTimjahkh vomcaq.
EN, hu ave gan kiejz fo naoxd vha oteq uxcicbicu. Qim’d zi drow hawf.
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.