PersistentTabScaffold constructor

PersistentTabScaffold({
  1. required PersistentBottomNavBar tabBar,
  2. required IndexedWidgetBuilder tabBuilder,
  3. Key? key,
  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({
  required this.tabBar,
  required this.tabBuilder,
  final Key? key,
  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);