import 'package:flutter/material.dart';

/// En-tête de la page Système.
class SystemHeader extends StatelessWidget {
  final Color primaryColor;
  final String title;
  const SystemHeader({super.key, required this.primaryColor, required this.title});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      padding: const EdgeInsets.symmetric(vertical: 16),
      decoration: BoxDecoration(
        color: primaryColor,
        border: Border(bottom: BorderSide(color: primaryColor.withAlpha(180), width: 3)),
      ),
      child: Text(
        title,
        textAlign: TextAlign.center,
        style: const TextStyle(color: Colors.white, fontSize: 28, fontWeight: FontWeight.bold, letterSpacing: 4),
      ),
    );
  }
}
