import 'package:flutter/material.dart'; class InfoCard extends StatelessWidget { const InfoCard({ super.key, required this.icon, required this.label, required this.value, }); final IconData icon; final String label; final String value; @override Widget build(BuildContext context) { final colors = Theme.of(context).colorScheme; return Expanded( child: Container( padding: const EdgeInsets.all(14), decoration: BoxDecoration( color: colors.surfaceContainerHighest.withValues(alpha: 0.72), borderRadius: BorderRadius.circular(22), border: Border.all(color: colors.outlineVariant.withValues(alpha: 0.45)), ), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ Icon(icon, color: colors.primary), const SizedBox(height: 12), Text( value, style: Theme.of(context).textTheme.titleMedium?.copyWith( fontWeight: FontWeight.w900, ), ), const SizedBox(height: 2), Text( label, style: Theme.of(context).textTheme.labelMedium?.copyWith( color: colors.onSurfaceVariant, ), ), ], ), ), ); } }