title: How to set Container height fit to screen
body: <p><strong>Note</strong>: <em>This widget is child of another Column</em></p>
  
  <p><br>
  I need to use   ListView.builder inside Column but to use it inside Column i need to wrap it with Container not only that i need to set the height,<br>here i used  MediaQuery.of(context).size.height and it works,<Br> but with one issue,it is showing that <em>A RenderFlex overflowed by 226 pixels on the bottom.</em> <br>How to avoid it ?</p>
  
  <pre><code> Column(
                    children: &lt;Widget&gt;[
                      getTopWidget(),
                      Container(    
                        height: MediaQuery.of(context).size.height,
                        width: MediaQuery.of(context).size.width,
                        child: ListView.builder(
                            itemCount: shapShot.data.length,
                            itemBuilder: (context,index){
                          return  EventCard(
                            title: shapShot.data[index].title,
                            details: shapShot.data[index].details,
                            imageUrl: shapShot.data[index].imageUrl,
                          );
                        }),
                      ),
                    ],
                  );
  </code></pre>
  
  <p><br></p>
  
  <p>I tried with Flexible and it not worked
  <br>
  When in try with <code>Expanded</code> it makes below error
  <br><a href="https://i.stack.imgur.com/8oLGu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8oLGu.png" alt="enter image description here"></a>
  <br>
  App screenshot<br><a href="https://i.stack.imgur.com/ftaiS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ftaiS.png" alt="enter image description here"></a>
  <br></p>
  
  <blockquote>
    <p>RenderBox was not laid out: RenderRepaintBoundary#76ded NEEDS-LAYOUT
    NEEDS-PAINT 'package:flutter/src/rendering/box.dart': Failed
    assertion: line 1695 pos 12: 'hasSize'
    <br><br><br></p>
  </blockquote>
  
  <p>The parent class code<br><br></p>
  
  <pre><code>import 'dart:collection';
  
  import 'package:devaayanam/DevaayanamApp/devaayanam_app_communities.dart';
  import 'package:devaayanam/DevaayanamApp/devaayanam_app_home_page.dart';
  import 'package:devaayanam/DevaayanamApp/devaayanam_app_temples_listing.dart';
  import 'package:devaayanam/DevaayanamApp/devaayanam_app_videos.dart';
  import 'package:flutter/material.dart';
  
  import '../GradientAppBar.dart';
  import 'temples_listing_with_tab_mode.dart';
  
  class DevaayanamAppFramePage extends StatefulWidget {
    DevaayanamAppFramePage({Key key}) : super(key: key);
  
    @override
    _DevaayanamAppFramePageState createState() =&gt; _DevaayanamAppFramePageState();
  }
  
  class _DevaayanamAppFramePageState extends State&lt;DevaayanamAppFramePage&gt; {
    int _selectedIndex = 0;
    ListQueue&lt;Widget&gt; page1,page2,page3,page4;
    _DevaayanamAppFramePageState(){
      page1=ListQueue();
      page1.add(DevaayanamAppHomePage());
      page2=ListQueue();
      page2.add(DevaayanamAppTemplesListing());
      page3=ListQueue();
      page3.add(DevaayanamAppCommunities());
      page4=ListQueue();
      page4.add(DevaayanamAppVideos());
    }
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: null,
  
        bottomNavigationBar: BottomNavigationBar(
            onTap: _onItemTapped,
            unselectedItemColor: Colors.grey,
            selectedItemColor: Colors.grey,
            currentIndex: _selectedIndex,
            items: &lt;BottomNavigationBarItem&gt;[
              BottomNavigationBarItem(
                  icon: Icon(
                    Icons.home,
                    color: Colors.grey,
                  ),
                  title: Text(
                    "Home",
                    style: TextStyle(color: Colors.grey),
                  )),
              BottomNavigationBarItem(
                  icon: Icon(Icons.assessment),
                  title: Text(
                    "Temples",
                    style: TextStyle(color: Colors.grey),
                  )),
              BottomNavigationBarItem(
                  icon: Icon(Icons.comment),
                  title: Text(
                    "Communities",
                    style: TextStyle(color: Colors.grey),
                  )),
              BottomNavigationBarItem(
                  icon: Icon(Icons.play_arrow),
                  title: Text(
                    "Videos",
                    style: TextStyle(color: Colors.grey),
                  )),
            ]),
  
        body: Container(
          child: Column(
            children: &lt;Widget&gt;[GradientAppBar(),getBody()],
          ),
        ),
      );
    }
  
  
    Widget getBody(){
      switch(_selectedIndex){
        case 0:
          return page1.last;
        case 1:
          return page2.last;
        case 2:
          return page3.last;
        case 3:
          return page4.last;
      }
    }
    void _onItemTapped(int index) {
      setState(() {
        _selectedIndex = index;
      });
    }
  }
  </code></pre>
  
  <p><br><br></p>