import 'package:flutter/material.dart'; /// Wiederverwendbarer Status-Badge (Symbol + Text mit farbigem Rahmen). /// Wird in jeder Zeile verwendet, in drei Varianten (Erledigt, /// In Bearbeitung, Nicht begonnen). class StatusBadge extends StatelessWidget { final String icon; final String label; final Color fillColor; final Color borderColor; final EdgeInsets iconPadding; const StatusBadge({ super.key, required this.icon, required this.label, required this.fillColor, required this.borderColor, this.iconPadding = EdgeInsets.zero, }); @override Widget build(BuildContext context) { return Container( padding: const EdgeInsets.all(1), color: borderColor, child: Container( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 2), color: fillColor, child: Row( spacing: 4, mainAxisSize: MainAxisSize.min, children: [ Padding( padding: iconPadding, child: Text( icon, style: TextStyle( fontSize: 10, fontWeight: FontWeight.w600, height: 1.5, letterSpacing: 0.55, color: borderColor, ), ), ), Text( label, style: TextStyle( fontSize: 11, fontWeight: FontWeight.w600, height: 17 / 11, letterSpacing: 0.55, color: borderColor, ), ), ], ), ), ); } }