import 'package:flutter/material.dart'; import '../theme/app_theme.dart'; class EmptyState extends StatelessWidget { final String message; final IconData icon; final String? actionLabel; final VoidCallback? onAction; const EmptyState({ super.key, required this.message, this.icon = Icons.inbox_outlined, this.actionLabel, this.onAction, }); @override Widget build(BuildContext context) => Center( child: Padding( padding: const EdgeInsets.all(32), child: Column( mainAxisSize: MainAxisSize.min, children: [ Icon(icon, size: 56, color: AppColors.textSub), const SizedBox(height: 12), Text(message, textAlign: TextAlign.center, style: const TextStyle(color: AppColors.textSub, fontSize: 14)), if (actionLabel != null && onAction != null) ...[ const SizedBox(height: 16), ElevatedButton(onPressed: onAction, child: Text(actionLabel!)), ], ], ), ), ); }