BilalShahid13 / PersistentBottomNavBar

A highly customizable persistent bottom navigation bar for Flutter
BSD 3-Clause "New" or "Revised" License
506 stars 371 forks source link

Style15 shows invisible rectangle on hideNavigationBar causing clickthrough #241

Open ronniechew opened 2 years ago

ronniechew commented 2 years ago

When using style15 and hideNavigationBar = true, the navbar is hidden but leave behind 2 invisible rectangles that can receive click events, causing click event to trigger at navbar instead of the button placed at the bottom. (see attached screenshots)

The ordinary navbar before it's hidden: 1

I need to hide navbar and show a button for user interaction in some pages: 2

If I click on the middle area of the button, instead of firing onTap() of Confirm button, it click through to the underlying navbar triggering the middle button on the navbar. 4

For clarity purpose, I've removed the button to only show you the rectangles from navbar. By enabling debug painting we can clearly see there are 2 rectangles left behind on the screen after navbar is hidden. 3