title: Flutter. GridView inside Container
body: <pre><code>import 'package:flutter/cupertino.dart';
  import 'package:flutter/material.dart';
  import 'package:carousel_slider/carousel_slider.dart';
  import 'Login.dart';
  class Home extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Container(
        decoration: BoxDecoration(
          image:DecorationImage(
            image: AssetImage(&quot;images/black_background_logo.png&quot;),
        fit: BoxFit.cover,
      )
        ),
        child: Column(
          children: [
            CarouselDemo(),
            HomePanel()
          ],
        ),
      );
  
    }
  
  }
  
  List&lt;String&gt; images = [
    'https://skalka-app.ru/banners/1.png',
    'https://skalka-app.ru/banners/2.png',
    'https://skalka-app.ru/banners/3.png',
  ] ;
  class CarouselDemo extends StatelessWidget {
    CarouselController buttonCarouselController = CarouselController();
  
    @override
    Widget build(BuildContext context) =&gt; CarouselSlider(
      options: CarouselOptions(
          height: MediaQuery.of(context).size.height*0.7,
        viewportFraction: 1.0,
        enableInfiniteScroll: true,
        reverse: false,
        autoPlay: true,
        autoPlayInterval: Duration(seconds: 8),
        autoPlayAnimationDuration: Duration(milliseconds: 800),
        autoPlayCurve: Curves.fastOutSlowIn,
      ),
      items: images.map((i) {
        return Builder(
          builder: (BuildContext context) {
            return Container(
                //width: MediaQuery.of(context).size.width,
                height: MediaQuery.of(context).size.height*0.7,
  
                decoration: BoxDecoration(
                    color: Colors.amber
                ),
                child: Image.network(i,fit: BoxFit.cover, height: MediaQuery.of(context).size.height*0.7,)
            );
          },
        );
      }).toList(),
    );
  }
  
  class HomePanel extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      final double height = MediaQuery.of(context).size.height;
      List&lt;String&gt; data = &lt;String&gt;[&quot;Twitter&quot;, &quot;Reddit&quot;, &quot;YouTube&quot;, &quot;Facebook&quot;,
        &quot;Vimeo&quot;, &quot;GitHub&quot;, &quot;GitLab&quot;, &quot;BitBucket&quot;, &quot;LinkedIn&quot;, &quot;Medium&quot;,
        &quot;Tumblr&quot;, &quot;Instagram&quot;, &quot;Pinterest&quot;];
      List&lt;RaisedButton&gt; myWidgets = data.map((item) {
        return new RaisedButton(
            child: new Text(item),
            onPressed: () async {
  
            }
        );
      }).toList();
      GridView myGrid = GridView.count(
          crossAxisCount: 3,
          children: myWidgets
      );
  
      return Container(
  
        height: height*0.3,
        width: MediaQuery.of(context).size.width,
        color: Colors.red,
        child:  myGrid
        );
  
  
    }
  }
  </code></pre>
  <p><strong>I'm trying to add a GridView to a Container, but an indent appears at the top. Please tell me how to fix this?</strong></p>
  <p>I painted the Container red to show that there is a padding on top. I could not find a solution to this problem on the Internet. I'm new to Flutter, maybe I missed an important point in building this widget.</p>
  <p><a href="https://i.stack.imgur.com/8oi5M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8oi5M.png" alt="Screenshot" /></a></p>