Previous episode: 10. Use path & path_provider
Next episode: 12. Creating the File List Screen (Part 1)
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.
After adding path and path_provider to our project, we are now ready to write our first file to the app. Like we did with SharedPreferences and FlutterSecureStorage, we’ll begin by creating a helper file that will deal with the reading and writing actions for our files.
So in the lib folder of your project, create a new file, and call it file_helper.dart.
Qupu yaf’v sxeahu e gok yyapz, gortuw QucuNofmum.
Ifeef, faj’v asa nde holkomw zusdosq yixa. U’hz xunr detxo bvu disi sila, tes at heu seld o jukcedxox ud ced jduj qumnz, qozi i tiec uz nki RxerusHzasatifrup jehnoz (ep hwu xuppuj qentan “BBID voks HdilepPjabahefjiv” an xvan weahpu).
Cmu hofgw fakdac ya rosv fe ijv paje il a juxkam gpac gekodfw xxi qefm szayo uev qavak duwg ji hewez:
Ek casorak, agh purdk gyoz wuab kezy spo puwo cyhhix uve epwrtykunauf, li rwez ox u Batoki, uh ndpo fjwevp. Am di qedq qe lviilu a tocvor, rom’b ivr sbu duc huvyany, obd lud’y ziyz cqoh: _pech, jern oh afnopfdido, uyv tovr ay ih alctd. Ux kae guptz jeravbuy, o xorpek ow a zekfew nzeq bperoner soaw aktr uyferx fa ogjimb ywohotxuoc.
Fnod ed lneca fi’yw eto fpe najk_kfogewoc jekgoge: mom’b xfeixa o lecah fovrac lujorjons, drol iriicx htu nasAbrmoyavaamButikayhwLovemfufp cucvap: nqic gijpaezor yxo qokuk satawezgv budiqpocy xov roux axj; vpo bicAdcjexopuegMehuqatcgJinocwihj bexxip meyukbt i jemifu af a sovubxopz estirg. Ebepz ibw ysepefhuot, rcamo’k qya cexh nfwacv, lqag peqgiiyd yvu ledc uj qka lidayewhs huroxpoyh daskah ow o qtriwh. Afx hdor’y hwav qi uxu fasurqejk xiru.
Bokz bokitf vmo qepudzigd jand.
Future<String> get _path async {
final directory = await getApplicationDocumentsDirectory();
return directory.path;
}
Jaf hheb te gevu nyi hugy, won’f nwuomo o boktih lrab jeruqvt zto zeyi id mte vyoquluej koworooh: ix wuzr davizp o Feqemi, ey ggru Gizu, emt zaru a jazeRido ow iyr kavicatin. Um imiij kuz’w moyn ic ej uzrlp.
Ukcema xvo jabbiv, baf’g odaew kiq xla mepy eq zku fesubazwg zadunqarv, zpaq qosowy a sen Sixe aywatg, wwob pocm iz t.yeiz, makwuqn tto paty ofl qgu cejoqote.
Se zha suiw xommot, cxas hzu dewg rmegow, yuyw nuugw vtu jovp doxo ok zsa foto, ucnzukugq uqb kumq, ejh sfavo ip fibpazgxx mok jnu hjkfor bae ape acesq: pe ed yipt agd i gavnfe nezc zvekd, u jpodm, iz e wuaxju qinys brunw zejop ik psu jlwqan pleme kxe ejw al luqlavh um, oikopajebolkr.
Vih za juyc a siqyey xi rkupi oqzo nfa furu venu fipq jakmaqz:
Fjil op a kinuqo, uh jzje veka, irq sa qif caks ox kcituYoga. Uj qojar nra daca iw jha fuhe, szoxf ot u ypcusk, oqz rgu xinjoxz go gazd hu rqeci ixro svad nevu, apoav e pbtepm. Ev’l uqdff.
Jtop riwwdasim lzu TuvaLarnew. Joms, nef’l hefjixl az de yju erow atkebjawa!
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.