PersistentTabViewBase constructor
const
PersistentTabViewBase({
- Key? key,
- List<
Widget> screens = const [], - PersistentTabController? controller,
- Widget? floatingActionButton,
- HideOnScrollSettings hideOnScrollSettings = const HideOnScrollSettings(),
- EdgeInsets margin = EdgeInsets.zero,
- bool confineToSafeArea = true,
- bool handleAndroidBackButtonPress = true,
- double? bottomScreenMargin,
- bool resizeToAvoidBottomInset = true,
- bool stateManagement = true,
- NavBarAnimationSettings animationSettings = const NavBarAnimationSettings(),
- bool isVisible = true,
- BuildContext? context,
- List<
PersistentBottomNavBarItem> items = const [], - Color? backgroundColor,
- ValueChanged<
int> ? onItemSelected, - NavBarDecoration decoration = const NavBarDecoration(),
- EdgeInsets padding = EdgeInsets.zero,
- NeumorphicProperties? neumorphicProperties,
- Widget? customWidget,
- int itemCount = 0,
- Future<
bool> onWillPop()?, - bool isCustomWidget = false,
- dynamic selectedTabScreenContext()?,
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);