import 'package:flutter/material.dart'; class AddSubjectCard extends StatelessWidget { final VoidCallback onTap; const AddSubjectCard({super.key, required this.onTap}); @override Widget build(BuildContext context) { return InkWell( onTap: onTap, // This triggers the function when clicked borderRadius: BorderRadius.circular(12.0), // Matches your container child: Container( decoration: BoxDecoration( color: Colors.transparent, borderRadius: BorderRadius.circular(12.0), border: Border.all( color: const Color.fromARGB(255, 128, 128, 128), width: 5.0, ), ), child: const Center( child: Text( "+", style: TextStyle( color: Color.fromARGB(255, 128, 128, 128), fontSize: 40.0, fontWeight: FontWeight.bold, ), ), ), ), ); } }