title: How do I add a container at the end of my grid view in Flutter?
body: <p>I have a GridView and I want to add a bannerAd after the gridview scroll ends. The bannerAd is called from the dependency  <a href="https://github.com/kmcgill88/admob_flutter" rel="nofollow noreferrer">https://github.com/kmcgill88/admob_flutter</a>.
  The code for the GridView is as follows </p>
  
  <pre><code>Widget build(BuildContext context) {
    SystemChrome.setEnabledSystemUIOverlays([]);
    return WillPopScope(
      onWillPop: () async {
        return true;
      },
      child: Scaffold(
        body: Container(
          decoration: BoxDecoration(
            gradient: LinearGradient(
              colors: [const Color(0xFFFEFEFE), const Color(0xFFFEFEFE)],
              begin: Alignment.centerLeft,
              end: Alignment.centerRight,
            ),
          ),
          child: Stack(children: &lt;Widget&gt;[
            Text(
              "Daily Tasks",
              style: TextStyle(
                fontFamily: "Netflix",
                fontWeight: FontWeight.w600,
                fontSize: 35,
                letterSpacing: 0.27,
                color: Color(0xFFFF8C3B),
              ),
            ),
            Expanded(
              flex: 20,
              child: GridView.builder(
                itemCount: homeList.length,
                gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                    crossAxisCount: 2, mainAxisSpacing: 20),
                itemBuilder: (ctx, i) {
                  return GestureDetector(
                    onTap: () async {
                      if (i == 0) {
                        if (await interstitialAd.isLoaded) {
                          interstitialAd.show();
                        } else {
                          dailyRewardAlert(context);
                        }
                      } else if (i == 1) {
                        FlutterPollfish.instance.show();
                      } else if (i == 2) {
                        sendInvite();
                      } else if (i == 3) {
                        hideBannerAd();
                        Navigator.push(context,
                            MaterialPageRoute(builder: (context) =&gt; Roulette()));
                      } else if (i == 4) {
                        hideBannerAd();
                        Navigator.push(context,
                            MaterialPageRoute(builder: (context) =&gt; Scratch()));
                      }
                    },
                    child: Container(
                      decoration: BoxDecoration(
                        borderRadius:
                            const BorderRadius.all(Radius.circular(16.0)),
                      ),
                      width: 150,
                      margin: const EdgeInsets.symmetric(horizontal: 11.0),
                      child: Container(
                        child: ClipRRect(
                          borderRadius: BorderRadius.circular(19.0),
                          child: Stack(
                            children: &lt;Widget&gt;[
                              Positioned.fill(
                                child: Image.asset(
                                  homeList[i].imagePath,
                                  fit: BoxFit.cover,
                                ),
                              ),
                              Positioned(
                                bottom: 0,
                                left: 0,
                                right: 0,
                                child: Container(
                                  padding: EdgeInsets.symmetric(
                                      horizontal: 9.0, vertical: 5.0),
                                  decoration: BoxDecoration(
                                      gradient: LinearGradient(
                                        colors: [
                                          const Color(0xFFFF8C3B),
                                          const Color(0xFFFE524B)
                                        ],
                                        begin: Alignment.centerLeft,
                                        end: Alignment.centerRight,
                                      ),
                                      borderRadius: BorderRadius.only(
                                          topRight: Radius.circular(15))),
                                  child: Column(
                                    crossAxisAlignment: CrossAxisAlignment.start,
                                    children: &lt;Widget&gt;[
                                      Text(
                                        "${homeList[i].taskTitle}",
                                        style: TextStyle(
                                          fontFamily: "Netflix",
                                          fontWeight: FontWeight.w600,
                                          fontSize: 17,
                                          letterSpacing: 0.27,
                                          color: Colors.white,
                                        ),
                                      ),
                                    ],
                                  ),
                                ),
                              ),
                            ],
                          ),
                        ),
                      ),
                    ),
                  );
                },
              ),
            ),
          ]),
        ),
      ),
    );
  }
  </code></pre>
  
  <p>I am new to Flutter and this would help me a lot, thank you so much for your contribution! :) I need help with Grid Views</p>