Flutter Navigator 2.0

Nov 8 2022 Dart 2.17.3, Flutter 3.0.2, Android Studio 2020.3

Part 3: Use the Navigation

14. Navigate to the Cart & Settings Pages

Episode complete

Play next episode

Save for later
About this episode
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 13. Navigate to the Home Page Next episode: 15. Navigate to the Detail & ReadBook Pages

This video Navigate to the Cart & Settings Pages was last updated on Nov 8 2022

Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a kodeco.com Professional subscription.

Episode - 14 Navigate to Cart & Settings Page

Just we have added the conditions and appStateManager function in login and SignUp page. Let us code the condition for other screens and appStateManager

Provider.of<AppStateManager>(context, listen: false).onCartTapped(true);
Provider.of<AppStateManager>(context, listen: false).onSettingTapped(true);
  Provider.of<AppStateManager>(context, listen: false).onMyBookTapped(true);
Provider.of<AppStateManager>(context, listen: false).onCheckoutTapped(true);
if (appStateManager.onCart ||
            appStateManager.onCart && bookManager.selectedIndex != -1 ||
            appStateManager.onCart &&
                appStateManager.onReadBook &&
                bookManager.selectedIndex != -1)
        if (appStateManager.onSettings ||
            appStateManager.onSettings && bookManager.selectedIndex != -1 ||
            appStateManager.onSettings &&
                appStateManager.onReadBook &&
                bookManager.selectedIndex != -1 &&
        if (appStateManager.onCheckout) CheckoutScreen.page(),
        if (appStateManager.onMyBooks) MyBooksScreen.page(),