Lidor Eliyahu Shelef
Lidor Eliyahu Shelef

Reputation: 1332

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

Upvotes: 1

Views: 340

Answers (1)

Lidor Eliyahu Shelef
Lidor Eliyahu Shelef

Reputation: 1332

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!

Upvotes: 2

Related Questions