I am using Overlay.of(context) to display some contents on button click. But there are two problems:
Here is the 'Expected Output'.

Current output is in this screenshot.

So, how can the overlay be removed while navigating and the dropdown be shown properly ? If it is not possible with overlay, is there any workaround?
PS: I am using NavigatorKey to change tables when names in the fixed sidebar are clicked as shown in the screenshot.
I found a solution to my problems.
Overlay is removed while navigating by using RouteAware + RouteObserver as shown in this stackoverflow answer.root navigator instead of nested navigator, and displays them on the top.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With