PersistentBottomNavBarV2
PersistentBottomNavBarV2 copied to clipboard
Rounded border when using custom persistent tab view
When using persistent tab view with provided navbar style, we can pass NavBarDecoration at PersistentTabView then pass borderRadius to it to make navigation bar with rounded corners. But when using custom navbar, even if function that passed as customWidget arguments returns a rounded widget, the navbar still has background color. Is there something that im doing wrong, or i should just use provided style instead?
Hi, you have two options:
- (recommended): Use the newest 5.x beta version. This should work out of the box.
- In the NavBarDecoration you have the
colorBehindNavBar
argument which you can use to set the color of the exposed corners. You can also play around withbottomScreenMargin
on thePersistentTabView
which controls how much of your page content will be overlapped by the navbar.