title: How to detect orientation change in layout in Flutter?
body: <p>How to find out Orientation is portrait or landscape in Flutter</p>
  
  <pre><code>if(portrait){
    return ListView.builder()
  }else{
    return GridView.count()
  }
  </code></pre>