I am beginner in flutter. I want to create a 8x2 gridview with button(custom button widget).But Items in GridView lost its state when it when they are out of the viewport.I also tried SilverGrid.There also the same proplem.Here is my code snippet. The selected status of SoundCard is lost its state when i scroll down and return to top of SoundCard.I enclosed the sample picture [here](http://vgifbot.online/gif/CgACAgUAAxkBAAEtmX9fu4j0x_omMMC7XnnfuzIbjGvMYQACTAMAAog74FVQJo16J3uIfR4E_1606125838.92.gif).

```
    import 'package:flutter/material.dart';
    import 'package:relax/constants.dart';
    import 'package:relax/soundcard.dart';

    class Index extends StatefulWidget {
    @override
    _IndexState createState() => _IndexState();
    }
    class _IndexState extends State<Index> {
     bool playState = false;
  @override
  Widget build(BuildContext context) {
    return Container(
        color: Color(0xFF55b9f3),
        child: GridView.count(
          primary: false,
    padding: const EdgeInsets.all(20),
          crossAxisSpacing: 40,
          mainAxisSpacing: 40,
          crossAxisCount: 2,
          children: <Widget>[
            SoundCard(
              assetName: 'rain',

            ),
            SoundCard(
              assetName: 'summernight',

            ),
            SoundCard(
              assetName: 'water',

            ),
            SoundCard(
              assetName: 'wind',

            ),
            SoundCard(
              assetName: 'thunderstorm',

            ),
            SoundCard(
              assetName: 'forest',

            ),
            SoundCard(
              assetName: 'leaves',

            ),
            SoundCard(
              assetName: 'fireplace',

            ),
            SoundCard(
              assetName: 'waterstream',

            ),
            SoundCard(
              assetName: 'seaside',

            ),
            SoundCard(
              assetName: 'brownnoise',

            ),
            SoundCard(
              assetName: 'coffeeshop',

            ),
            SoundCard(
              assetName: 'fan',

            ),
            SoundCard(
              assetName: 'pinknoise',

            ),
            SoundCard(
              assetName: 'whitenoise',

            ),
            SoundCard(
              assetName: 'train',

            ),
          ],
        )

        );
  }
}

```

The SoundCard is like button .When i scroll and return to the top, the selected status of SoundCard button is lost its selected state.Can any one help me out of this?