Extract GuessSilhouette, GenFilterSection, LivesRow, GuessInputSection, ScoreBoard and a shared ScanlineOverlay. guess_page.dart 440 -> 149 lines. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
616 B
Dart
23 lines
616 B
Dart
import 'package:flutter/material.dart';
|
|
import '../../../core/config/app_constants.dart';
|
|
|
|
/// Rangée de cœurs représentant les vies restantes.
|
|
class LivesRow extends StatelessWidget {
|
|
final int lives;
|
|
const LivesRow({super.key, required this.lives});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: List.generate(AppConstants.startingLives, (index) {
|
|
return Icon(
|
|
index < lives ? Icons.favorite : Icons.favorite_border,
|
|
color: Colors.red,
|
|
size: 32,
|
|
);
|
|
}),
|
|
);
|
|
}
|
|
}
|