From 5914874be87eaa3049f781f2c2bad21904d62483 Mon Sep 17 00:00:00 2001 From: Sam Jones <45644425+jones-sam@users.noreply.github.com> Date: Wed, 19 May 2021 16:55:29 -0300 Subject: [PATCH] Added ability to change the nav bar height in custom styles --- lib/persistent-tab-view.widget.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/persistent-tab-view.widget.dart b/lib/persistent-tab-view.widget.dart index 9b359c62..182319d0 100644 --- a/lib/persistent-tab-view.widget.dart +++ b/lib/persistent-tab-view.widget.dart @@ -152,6 +152,7 @@ class PersistentTabView extends PersistentTabViewBase { this.handleAndroidBackButtonPress = true, this.hideNavigationBar, this.screenTransitionAnimation = const ScreenTransitionAnimation(), + double navBarHeight = kBottomNavigationBarHeight, }) : super( key: key, context: context, @@ -173,6 +174,7 @@ class PersistentTabView extends PersistentTabViewBase { screenTransitionAnimation: screenTransitionAnimation, isCustomWidget: true, decoration: NavBarDecoration(), + navBarHeight: navBarHeight, ) { 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");