tabBuilder method
Returns the PageStackNavigator for the given index
.
This can be passed to the tabBuilder property of a CupertinoTabScaffold:
final tabState = CupertinoTabPage.of(context);
final scaffold = CupertinoTabScaffold(
controller: tabState.controller,
tabBuilder: tabState.tabBuilder,
...
)
Implementation
Widget tabBuilder(BuildContext context, int index) {
return PageStackNavigator(stack: stacks[index]);
}