title: flutter gridview item at bottom
body: <p>I have a gridView(3 items in a row) with dynamic number of items. I want gridView item should be at bottom means if there are 3 items then one row at bottom of screen, if there are 6 items then two row at bottom. So a dynamic padding at top depending on item count and screen size. My code structure is like below</p>
  <pre><code>class className extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: SafeArea(
          child: Stack(
            children: [
              ImageFiltered(
                  //code here
                  ),
              Container(
                width: MediaQuery.of(context).size.width,
                height: MediaQuery.of(context).size.height,
                color: Colors.black38,
              ),
              GridView.builder(
                  primary: false,
                  reverse: false,
                  padding: const EdgeInsets.symmetric(
                    horizontal: 10,
                    vertical: 30,
                  ),
                  itemBuilder: (context, index) {
                  
                    return InkWell(
                      onTap: () {
                        //code
                      },
                      child: CustomWidget(
                        title: toolkitStore.getLabel(toolKit),
                        icon: ImageIcon(
                          AssetImage(
                              'assets/images/abcd.png'),
                          size: 48,
                          color: kWhiteColor,
                        ),
                      ),
                    );
                  },
                  itemCount: getCount().length,
                  gridDelegate:
                      SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3),
                ),
            ],
          ),
        ),
      );
    }
  }
  </code></pre>
  <p>Now I have this</p>
  <p><a href="https://i.stack.imgur.com/8WPPf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8WPPf.png" alt="enter image description here" /></a></p>
  <p>but I want this</p>
  <p><a href="https://i.stack.imgur.com/ic3gN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ic3gN.png" alt="enter image description here" /></a></p>
  <p><strong>Thanks in advance.</strong></p>