title: How to put view above the list view?
body: <p>I have a listview which is equally divided into two parts(act as a background) How can i put a view above it( 100*100 w*h )?(This box should center align &amp; top of root)</p>
  
  <p>here is my tried code -</p>
  
  <pre><code>  @override
      Widget build(BuildContext context) {
        return Scaffold(
          body: ListView(
            children: &lt;Widget&gt;[
              Container(
                width: ((context.findRenderObject() as RenderBox).size.width),
                height: ((context.findRenderObject() as RenderBox).size.height)/2,
                color: darkGreen,
              ),
            //  SizedBox(width: 10,),
              Container(
                width: ((context.findRenderObject() as RenderBox).size.width),
                height: ((context.findRenderObject() as RenderBox).size.height)/2,
                color: Colors.grey,
              ),
            ],
          ),
        );
      }
    }
  </code></pre>