import 'package:flutter/material.dart'; import '../data/sample_tasks.dart'; import '../models/task.dart'; class FooterBar extends StatelessWidget { const FooterBar({super.key}); int _count(TaskStatus status) { int n = 0; for (final task in sampleTasks) { if (task.status == status) { n++; } } return n; } @override Widget build(BuildContext context) { return Container( height: 28, color: const Color(0xFF0B0E16), child: Column( children: [ Container(height: 1, color: const Color(0xFF1E2D3D)), Expanded( child: Padding( padding: const EdgeInsets.symmetric(horizontal: 20), child: Row( spacing: 16, children: [ Text( '✓ ${_count(TaskStatus.erledigt)} Erledigt', style: TextStyle( fontSize: 10, height: 1.5, color: Color(0xFF10B981), ), ), Text( '◈ ${_count(TaskStatus.inBearbeitung)} In Bearbeitung', style: TextStyle( fontSize: 10, height: 1.5, color: Color(0xFFF59E0B), ), ), Text( '○ ${_count(TaskStatus.nichtBegonnen)} Nicht begonnen', style: TextStyle( fontSize: 10, height: 1.5, color: Color(0xFF64748B), ), ), ], ), ), ), ], ), ); } }