PersistentTabViewBase constructor

const PersistentTabViewBase({
  1. Key? key,
  2. List<Widget> screens = const [],
  3. List<CustomNavBarScreen> customNavBarScreens = const [],
  4. PersistentTabController? controller,
  5. Widget? floatingActionButton,
  6. HideOnScrollSettings hideOnScrollSettings = const HideOnScrollSettings(),
  7. EdgeInsets margin = EdgeInsets.zero,
  8. bool confineToSafeArea = true,
  9. bool handleAndroidBackButtonPress = true,
  10. double? bottomScreenMargin,
  11. bool resizeToAvoidBottomInset = true,
  12. bool stateManagement = true,
  13. NavBarAnimationSettings animationSettings = const NavBarAnimationSettings(),
  14. bool isVisible = true,
  15. BuildContext? context,
  16. List<PersistentBottomNavBarItem> items = const [],
  17. Color? backgroundColor,
  18. ValueChanged<int>? onItemSelected,
  19. NavBarDecoration decoration = const NavBarDecoration(),
  20. EdgeInsets padding = EdgeInsets.zero,
  21. NavBarStyle navBarStyle = NavBarStyle.simple,
  22. NeumorphicProperties? neumorphicProperties,
  23. double navBarHeight = kBottomNavigationBarHeight,
  24. Widget? customWidget,
  25. int itemCount = 0,
  26. PopBehavior popBehaviorOnSelectedNavBarItemPress = PopBehavior.all,
  27. Future<bool> onWillPop(
    1. BuildContext
    )?,
  28. bool hideNavigationBarWhenKeyboardAppears = true,
  29. bool isCustomWidget = false,
  30. dynamic selectedTabScreenContext(
    1. BuildContext
    )?,
  31. MainAxisAlignment navBarItemsAlignment = MainAxisAlignment.spaceAround,
  32. NavBarPosition navBarPosition = NavBarPosition.bottom,
})

Implementation

const PersistentTabViewBase({
  final Key? key,
  this.screens = const [],
  this.customNavBarScreens = const [],
  this.controller,
  this.floatingActionButton,
  this.hideOnScrollSettings = const HideOnScrollSettings(),
  this.margin = EdgeInsets.zero,
  this.confineToSafeArea = true,
  this.handleAndroidBackButtonPress = true,
  this.bottomScreenMargin,
  this.resizeToAvoidBottomInset = true,
  this.stateManagement = true,
  this.animationSettings = const NavBarAnimationSettings(),
  this.isVisible = true,
  this.context,
  this.items = const [],
  this.backgroundColor,
  this.onItemSelected,
  this.decoration = const NavBarDecoration(),
  this.padding = EdgeInsets.zero,
  this.navBarStyle = NavBarStyle.simple,
  this.neumorphicProperties,
  this.navBarHeight = kBottomNavigationBarHeight,
  this.customWidget,
  this.itemCount = 0,
  this.popBehaviorOnSelectedNavBarItemPress = PopBehavior.all,
  this.onWillPop,
  this.hideNavigationBarWhenKeyboardAppears = true,
  this.isCustomWidget = false,
  this.selectedTabScreenContext,
  this.navBarItemsAlignment = MainAxisAlignment.spaceAround,
  this.navBarPosition = NavBarPosition.bottom,
}) : super(key: key);