title: Should I use absolute pixel values in my Flutter widgets, or should I scale them to the screen?
body: <p>I am coming to Flutter from a web background, where I am used to defining screen elements in terms of percentages of the height and width of the screen, or of elements that contain them.</p>
  
  <p>I just completed a course.</p>
  
  <p>Now that I am enthused and want to start building an app, I am a little confused, as the course only spoke of heights &amp; widths in absolute pixel values. I can see this being problematic with different aspect rations, and especially with different orientations.</p>
  
  <p>Is there a canonical approach to this? The official docs also seem to use absolute pixel values, so maybe I am missing a fundamental point.</p>
  
  <p>A search suggests that I might use <a href="https://api.flutter.dev/flutter/widgets/MediaQuery-class.html" rel="noreferrer">MediaQuery</a> and then scale everything according to that. But, I don't see widespread use of that in code samples.</p>
  
  <p>Is there a non-opinionated standard approach?</p>