-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Bottom Nav Bar using Stacked and Navigation Service #86
Comments
We are able to use Bottom navigation bar, by adding parent view "HomeView" in which we are calling all the child views. Views are working just fine. Now our issue is about the DataService is been called each time, on swap of views. Below is our code for locator.dart
In the view we have added When we execute:
Code for view_mode_1.dart 14:63 is:
Kindly suggest how to rectify this? |
We were working on custom bottom navigation bar using
GestureDetector
to navigate through different states. But it's increasing the Firebase Reads every the screen is built. With your recent update whereIndexTrackingViewModel
is included, we want to understand how to implement with a multi-route App and NavigationService.In our scenario we have Splash Screen Navigates to HomeScreen. Bottom Navigation is visible in three screens, each of the following screen uses a custom stateless class
CustomBottomNavigation
which returnsBottomNavigationBar
.Right now the navigation is controlled using
Router
as explained in your tutorial.Do we have to extend
IndexTrackingViewModel
to each of the above three viewmodels which are currently extendingBaseModel
?The text was updated successfully, but these errors were encountered: