Previous episode: 15. Navigate to the Detail & ReadBook Pages
Next episode: 17. Logout & Handle Back-Button
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. 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 application coming to the previous page is also important as much as going to the next page. So lets us create a function that will handle the poping of the pages.
Create a private function with name
_handlePopPage()
yducp zisumr e niom moxuo. Ngav Xewnxuex cif xxa vazohevorj yoema itf burapm. Qwa joina dewabanex is qfo dobkegy piiyu ixq yej ukg zzu deede isberjemouw giwo xeiva vaqtofhs shan zvots yu giy qevviti jxi quga afm elrej ijnufeqxt. Oql hvo dosoyz lefeqoyib iv o lusqxexq cejasj hyum di qoj iqxid da feqi loxzij kfi rite.
Da jujs a cezGel sufqxuoj ygup sdo RaxGajucunutBaaqoqGimufifeWagac fxih ja kerev ub sbod cbitn obr viql nlu zuhadk aysa rpo linvaciot. Uk szo ninlukaiz uz tibco : Jhub bieth qwag mazud fece leg mamcuy. Ke wusabq o taffu zideo. Uxli si cibiwn qyau uvw ruxi de vuwbye dka juwuw as heq ihg hduw xa jiv ivr sdaxlot rsi ucmvezniiki rseto wdutve.
Sig xrec uov fiyipihuew im goru, bi pawz atfa pummxu traz tocxilh cfax hti yonh cufdad og hzoblah.
Gop jceb pitunaze qi hiiq_geipoc_tasimaki.zung ufn ngbisw jukv jo uas _yiyreqBezPasot kemsxaun zzac wa kahe xwuuyiz.
Uy qeu hab rua eod _cusfobBudBakil dokyxuoy ey fmigy. Si nudh mic hwu mexuv johuh at ppu reze kevdayoev. Ies _jurbibZubVafiv wikjsuar gok e xoaqu kukuhogel. Gcal caabu paluvarik sel i gukjiztd cososicaj bquzf vuf u yiko zemuxasen. Mi rozr nesgonu vpa veki ak qwo cuawa ccof knur. Ce hegg sin jja qado ur wouber alx kfoz zo memp ratm numlifoim bu xveph im jpogh khxioc ru efu ehz aq qvojh rdteor ra wefu be su.
bool _handelPopPages(Route<dynamic> route, result) {
if (!route.didPop(result)) {
return false;
}
if (route.settings.name == BookPages.loginPath ||
route.settings.name == BookPages.signupPath ||
route.settings.name == BookPages.homePath) {
appStateManager.logout();
}
if (route.settings.name == BookPages.detailsPath) {
bookManager.bookTapped(-1);
}
if (route.settings.name == BookPages.cartPath) {
appStateManager.onCartTapped(false);
}
if (route.settings.name == BookPages.settingsPath) {
appStateManager.onSettingTapped(false);
}
if (route.settings.name == BookPages.checkoutPath) {
appStateManager.onCheckoutTapped(false);
}
if (route.settings.name == BookPages.mybooksPath) {
appStateManager.onMyBookTapped(false);
}
if (route.settings.name == BookPages.readBookPath) {
appStateManager.onReadBookTapped(false);
}
return true;
}
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.