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>
23 lines
611 B
Dart
23 lines
611 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// Titre de section avec une barre verticale colorée à gauche.
|
|
class SectionTitle extends StatelessWidget {
|
|
final String text;
|
|
final Color color;
|
|
const SectionTitle({super.key, required this.text, required this.color});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: [
|
|
Container(width: 4, height: 20, color: color),
|
|
const SizedBox(width: 8),
|
|
Text(
|
|
text,
|
|
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold, color: color, letterSpacing: 2),
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|