import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; import '../../../core/constants/colors.dart'; class FeatureCard extends StatelessWidget { final String title; final String description; final IconData icon; final Color iconColor; final VoidCallback onTap; const FeatureCard({ super.key, required this.title, required this.description, required this.icon, required this.iconColor, required this.onTap, }); @override Widget build(BuildContext context) { return GestureDetector( onTap: onTap, child: Container( margin: const EdgeInsets.only(bottom: 20), padding: const EdgeInsets.all(24), decoration: BoxDecoration( color: AppColors.cardBg, borderRadius: BorderRadius.circular(20), border: Border.all(color: Colors.white.withOpacity(0.05)), ), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Container( padding: const EdgeInsets.all(12), decoration: BoxDecoration( color: iconColor.withOpacity(0.12), shape: BoxShape.circle, ), child: Icon( icon, color: iconColor, size: 28, ), ), const SizedBox(height: 20), Text( title, style: GoogleFonts.nunito( color: Colors.white, fontSize: 20, fontWeight: FontWeight.bold, ), ), const SizedBox(height: 8), Text( description, style: GoogleFonts.nunito( color: Colors.white.withOpacity(0.6), fontSize: 14, height: 1.5, ), ), ], ), ), ); } }