Skip to content

Commit

Permalink
add defaultChild to sample
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpryan committed Mar 28, 2022
1 parent 5902e0c commit 903ace0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/lib/bottom_nav_with_tabs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ class BottomNavWithTabsDemo extends StatelessWidget {
routes: [
SwitcherRoute(
path: '/',
defaultChild: 'books',
builder: (context, child) {
return AppScaffold(child: child);
},
children: [
SwitcherRoute(
path: 'books',
defaultChild: 'popular',
builder: (context, child) {
return TabScreen(
selectedIndex: _calculateTabIndex(context),
Expand Down

0 comments on commit 903ace0

Please sign in to comment.