title: Flutter - Enable scroll only if content height is greater than screen height
body: <p>I am taking ListView() or SingleChildScrollView() in body widget by default. So it is scrolling the content if it is less content. I want to scroll enable only if content is greater than screen height. If content height is less than screen height, need to disable scroll.</p>
  <pre><code>double? physicalSizeScreenHeight =
    ui.window.physicalSize.height / ui.window.devicePixelRatio;
  
  physics: physicalSizeScreenHeight &lt;= 700 
  ? AlwaysScrollableScrollPhysics()
  : NeverScrollableScrollPhysics(), 
  </code></pre>
  <p>It is working for some devices and not working for some devices depends on screen width and height and also depends on resolution.</p>
  <p>Without checking any condition at &quot;physics&quot; for always or never and allow to AlwaysScrollableScrollPhysics(), then depends on conent height, need to enable/disable scroll.</p>
  <p>Any suggestions would be helpful to solve this issue.</p>