Flutter Navigator 2.0

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

Part 3: Use the Navigation

15. Navigate to the Detail & ReadBook Pages

Episode complete

Play next episode

Save for later
About this episode
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 14. Navigate to the Cart & Settings Pages Next episode: 16. Go to the Previous Page

This video Navigate to the Detail & ReadBook 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 - 15 Navigate to Detail And Readbook Pages

Let is write the navigation of the details page. When we click on the book tile on the home page it takes us to the detail page. Come to homeScreen and in the onTap function in the Grideview Write the bookTapped Function from the BookManager class.

Provider.of<BookManager>(context, listen: false).bookTapped(index);
if (bookManager.selectedIndex != -1 && !appStateManager.onCart && !appStateManager.onSettings)DetailsScreen.page(book: bookManager.selectedBookItem, index: bookManager.selectedIndex),
Provider.of<AppStateManager>(context, listen: false).onReadBookTapped(true);
  if (appStateManager.onReadBook &&
           bookManager.selectedIndex != -1 &&
           !appStateManager.onCart &&