Move SystemHeader, SectionTitle, StatsGrid/StatItem and PalettePicker into widgets/system/. system_page.dart 260 -> 80 lines. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
745 B
Dart
25 lines
745 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// En-tête de la page Système.
|
|
class SystemHeader extends StatelessWidget {
|
|
final Color primaryColor;
|
|
const SystemHeader({super.key, required this.primaryColor});
|
|
|
|
@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: const Text(
|
|
'SYSTÈME',
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(color: Colors.white, fontSize: 28, fontWeight: FontWeight.bold, letterSpacing: 4),
|
|
),
|
|
);
|
|
}
|
|
}
|