When I use MediaQuery.of(context).padding.top
without the navBar in the widget tree then it returns me the actual true value.
Reloaded 1 of 529 libraries in 637ms.
I/flutter (31730): 24.0
But when I place the appBar into the widget tree then it returns me 0.0 only.
Reloaded 1 of 529 libraries in 764ms.
I/flutter (31730): 0.0
Can someone please help that why it is happening?