MediaQuery.of(context).padding.top is returning 0.0 when I'm using it with appBar. Why is that?

前端 未结 0 620
执念已碎
执念已碎 2021-01-01 12:11

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 6         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题