Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/persistent_tab_view.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ class PersistentTabView extends PersistentTabViewBase {
"screens and items length should be same. If you are using the onPressed callback function of 'PersistentBottomNavBarItem', enter a dummy screen like Container() in its place in the screens"),
assert(items!.length >= 2 && items.length <= 6,
"NavBar should have at least 2 or maximum 6 items (Except for styles 15-18)"),
assert(handleAndroidBackButtonPress && onWillPop == null,
assert(
handleAndroidBackButtonPress && onWillPop == null ||
!handleAndroidBackButtonPress && onWillPop != null,
"If you declare the onWillPop function, you will have to handle the back function functionality yourself as your onWillPop function will override the default function."),
super(
key: key,
Expand Down Expand Up @@ -104,7 +106,9 @@ class PersistentTabView extends PersistentTabViewBase {
this.screenTransitionAnimation = const ScreenTransitionAnimation(),
}) : assert(itemCount == screens.length,
"screens and items length should be same. If you are using the onPressed callback function of 'PersistentBottomNavBarItem', enter a dummy screen like Container() in its place in the screens"),
assert(handleAndroidBackButtonPress && onWillPop != null,
assert(
handleAndroidBackButtonPress && onWillPop == null ||
!handleAndroidBackButtonPress && onWillPop != null,
"If you declare the onWillPop function, you will have to handle the back function functionality yourself as your onWillPop function will override the defualt function."),
super(
key: key,
Expand Down