PersistentTabScaffold constructor

PersistentTabScaffold({
  1. Key? key,
  2. required PersistentBottomNavBar tabBar,
  3. required IndexedWidgetBuilder tabBuilder,
  4. PersistentTabController? controller,
  5. Color? backgroundColor,
  6. bool resizeToAvoidBottomInset = true,
  7. double? bottomScreenMargin,
  8. bool? stateManagement,
  9. ScreenTransitionAnimation? screenTransitionAnimation,
  10. bool? hideNavigationBarWhenKeyboardShows,
  11. int? itemCount,
  12. 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);