finds.dev

bizz84/nested-navigation-demo-flutter

Nested navigation with BottomNavigationBar

View on GitHubHomepage ↗

★ 665DartMITupdated Jan 2023

// the take

A small companion repo for a 2018 blog post showing how to give each tab in a BottomNavigationBar its own independent navigation stack, using a Stack of Offstage widgets each wrapping a Navigator. It's for Flutter developers who want to see the classic 'multiple navigators' pattern in a minimal, runnable app rather than read about it in the abstract.

The lib/ folder is genuinely tiny (six files) so you can read the whole implementation in a few minutes and see exactly how TabNavigator, Offstage, and WillPopScope fit together. It's a focused single-concept demo, not a kitchen-sink starter template, so there's no unrelated scaffolding to wade through. The linked article gives the reasoning behind the code, which most one-off demo repos skip.

Last pushed January 2023 and built on an approach (Offstage + per-tab Navigator + WillPopScope) that Flutter itself has since nudged away from — WillPopScope is deprecated in favor of PopScope, and most real apps solve this problem with go_router or Navigator 2.0's declarative API now, so this pattern reads as dated rather than idiomatic. No tests beyond the default widget_test.dart boilerplate, and no CI. Zero issues/PRs activity suggests it's not maintained, so pubspec dependency versions and Android/iOS build config are likely stale against current Flutter/Gradle/Xcode toolchains and may need patching just to run.

We read the README, the directory tree and a key source file in October 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
665
Forks
135
Language
Dart
License
MIT
Last commit
11 Jan 2023

// nearby

If nested-navigation-demo-flutter isn't quite it.

All repos →