Flutter: Can I make Navigation bar top left and right top with radius 20
I tried custom bottom nav.
Container(
decoration: BoxDecoration(
color: Colors.blue, // Set your desired background color
borderRadius: BorderRadius.only(
topLeft: Radius.circular(20),
topRight: Radius.circular(20),
),
),
But it is not working
2
Answers
try with the ClipRRect Widget surrounding your navigation nar, there is an example:
You can try wrapping the
BottomNavigationBar
in aClipRRect
with the desired border radius.Here is an example of how to do it: