title: GridView Bottom Overflowed by 4907 pixels
body: <p>I was writing the code for my application, but there's one part of the code which gives me problems. Specifically this one:</p>
  <pre><code>  List&lt;Widget&gt; _days() {
      List&lt;Widget&gt; widgets = [];
      for (int c = 0; c &lt; 800; c++) {
        widgets.add(InkWell(
          child: Container(
            padding: EdgeInsets.all(8),
            decoration: BoxDecoration(
              shape: BoxShape.circle,
              color: dateColors[c],
            ),
            child: setDay(c),
          ),
          onTap: () {
            setState(() {
              changeColors(c);
            });
          },
        ));
      }
      return widgets;
    }
  
    @override
    Widget build(BuildContext context) {
      List months = [
        'JANUARY ',
        'FEBRUARY ',
        'MARCH ',
        'APRIL ',
        'MAY ',
        'JUNE ',
        'JULY ',
        'AUGUST ',
        'SEPTEMBER ',
        'OCTOBER ',
        'NOVEMBER ',
        'DECEMBER '
      ];
      int year = 2021;
      String yearStr = year.toString();
      return MaterialApp(
        title: 'Calendar',
        home: Scaffold(
            appBar: AppBar(title: Center(child: Text(months[0] + yearStr))),
            body: Column(
              children: &lt;Widget&gt;[
                GridView.count(
                  shrinkWrap: true,
                  crossAxisSpacing: 10,
                  mainAxisSpacing: 2,
                  crossAxisCount: 7,
                  children: _days(),
                ),
                ListView(
                  shrinkWrap: true,
                  children: &lt;Widget&gt;[
                    Text(&quot;Event 1&quot;),
                    Text('Event 2'),
                    Text('Event 3'),
                    Text('Event 4'),
                  ],
                ),
              ],
            )),
      );
    }
  </code></pre>
  <p>When I run it, it gives me this:</p>
  <p><a href="https://i.stack.imgur.com/z0pQD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z0pQD.jpg" alt="enter image description here" /></a></p>
  <p>The problem doesn't appear if I use a smaller number of days in the GridView widget (in other words, a smaller number of iterations in the for loop). I'm trying to make it so that the GridView widget and the ListView widget scroll separately, but I haven't been successful so far. Does anyone know why?</p>
  <p>EDIT: Both answers together solved the problem.</p>