FilledStacks / FilledStacks/flutter-tutorials

Implement Bottom Nav Bar using Stacked and Navigation Service

Open
#86 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
4.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

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 where `IndexTrackingViewModel` 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 returns `BottomNavigationBar`.
1. HomeScreen with Multi Widgets and Navigation Text Links
2. FirebaseList Screen with Sliver List (OnTap of List Item) Firebase List Item Detail Screen.
3. User Screen with Sliver List (OnTap of List Item) Firebase List Item Detail Screen.

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 extending `BaseModel`?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.