flutteruinavigationbarflutter-layoutflutter-animationanimatedcontainer

Flutter - Curved Navigation Bar - draw outside of the screen


I'm using curved_navigation_bar : this one

I have an animatedContainer that shrink to 1/4 of its size, and it has an Curved Navigation Bar, when the Container shrinks the navigation bar draws a little bit outside of the container, I need a way to stop it.

attached: screenshot of the problem, you can see in a blue circle the extra drawing it does and that I need to stop.

enter image description here

I've searched the web for solution and even tried to examine the source code but with no luck


Solution

  • The solution given by @pskink

    using clipRRect ( or clipReck ) and inside of it put the entire child of the AnimatedContainer, will resolve this problem perfectly!