PersistentTabScaffold constructor
PersistentTabScaffold({
- Key? key,
- required PersistentBottomNavBar tabBar,
- required IndexedWidgetBuilder tabBuilder,
- PersistentTabController? controller,
- Color? backgroundColor,
- bool resizeToAvoidBottomInset = true,
- double? bottomScreenMargin,
- bool? stateManagement,
- ScreenTransitionAnimation? screenTransitionAnimation,
- int? itemCount,
- bool animatePadding = false,
Implementation
PersistentTabScaffold({
Key? key,
required this.tabBar,
required this.tabBuilder,
this.controller,
this.backgroundColor,
this.resizeToAvoidBottomInset = true,
this.bottomScreenMargin,
this.stateManagement,
this.screenTransitionAnimation,
this.hideNavigationBarWhenKeyboardShows,
this.itemCount,
this.animatePadding = false,
}) : assert(
controller == null || controller.index < itemCount!,
"The PersistentTabController's current index ${controller.index} is "
'out of bounds for the tab bar with ${tabBar.navBarEssentials!.items!.length} tabs'),
super(key: key);