With flutter, how can I create a hole inside the bottom nav bar and put the fab inside it, something like the image below
I have tried wrapping the fab with padding, increase the top padding to move it down and increase the notch margin but the bottom nav bar did not look like I want.
FAb code:
Padding(
padding: const EdgeInsets.only(top: 90),
child: FloatingActionButton(...)
)
bottom nav bar code:
BottomAppBar(
elevation: 0,
color: Colors.transparent,
shape: const CircularNotchedRectangle(),
clipBehavior: Clip.antiAlias,
notchMargin: 50.0,
child: SizedBox(...)
)
Here is how I want it to look like