import 'package:flutter/material.dart'; class DetailInfoCard extends StatelessWidget { final IconData icon; final String label; final String value; final Color color; const DetailInfoCard({ super.key, required this.icon, required this.label, required this.value, this.color = Colors.blue, }); @override Widget build(BuildContext context) { return Container( padding: EdgeInsets.all(16), decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.circular(16), boxShadow: [ BoxShadow( color: Colors.black.withAlpha(150), blurRadius: 10, offset: Offset(0, 4), ), ], ), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Row( children: [ Container( padding: EdgeInsets.all(10), decoration: BoxDecoration( color: color.withAlpha(10), borderRadius: BorderRadius.circular(12), ), child: Icon(icon, color: color, size: 24), ), SizedBox(width: 12), Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( label, style: TextStyle( fontSize: 12, color: Colors.grey.shade600, fontWeight: FontWeight.w500, ), ), SizedBox(height: 4), Text( value, style: TextStyle( fontSize: 18, fontWeight: FontWeight.bold, color: Colors.grey.shade800, ), ), ], ), ), ], ), ], ), ); } }