title: Can I fix MediaQuery.of(context) to constant value?
body: <p>To make responsive application, I'm using <code>MediaQuery.of(context)</code> for every component size, but it is hard working to write for each section.</p>
  
  <p>Therefore, I fixed it to constant and is it right handling?</p>
  
  <pre><code>class ScreenUtil {
    static double width;
    static double height;
  }
  void initializeConstants(BuildContext context){
    ScreenUtil.width = MediaQuery.of(context).size.width;
    ScreenUtil.height = MediaQuery.of(context).size.height;
    CurrentPlatform.platform = Theme.of(context).platform;
  }
  </code></pre>