buildWeatherDetail function
Build a generic weather detail row.
Implementation
Widget buildWeatherDetail({
required IconData icon,
required String label,
required String value,
}) {
return Padding(
padding: const EdgeInsets.symmetric(vertical: 6),
child: Row(
children: [
Icon(icon, size: 24, color: Colors.grey[600]),
const SizedBox(width: 16),
Expanded(child: Text(label, style: const TextStyle(fontSize: 15))),
Text(
value,
style: const TextStyle(fontSize: 15, fontWeight: FontWeight.w600),
),
],
),
);
}