title: How do I get Dart Flutter GridView items to click?
body: <p>I'm trying to make an interface with Dart Flutter. I made an interface like this:</p>
  <p><a href="https://i.stack.imgur.com/LzhyO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LzhyO.png" alt="enter image description here" /></a></p>
  <p>I want these items to be clickable. When clicked, I will take action. What can I do so that items can be clicked?</p>
  <p>Codes:</p>
  <pre><code>body: Center(
          child: GridView.builder(
            gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
              crossAxisCount: 2,
            ),
            itemCount: subjects.length,
            itemBuilder: (BuildContext context, int index) {
              return Container(
                child: Card(
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.center,
                      children: [
                        Image.asset(subjects[index].subjectImage, fit: BoxFit.cover, height: 50, width: 50,),
                        SizedBox(height: 10,),
                        Text(subjects[index].subjectName, style: TextStyle(fontSize: 20),),
                      ],
                    ),
                  ),
              );
            },
          ),
        )
  </code></pre>