Error : MediaQuery.of() called with a context that does not contain a MediaQuery
No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of()
This can happen because you do not have a WidgetsApp or MaterialApp widget (those widgets introduce
a MediaQuery), or it can happen if the context you use comes from a widget above those widgets.
The context used was:
Scaffold(dirty, state: ScaffoldState#3d1d9(lifecycle state: initialized, tickers: tracking 1