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>
22 lines
608 B
Dart
22 lines
608 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
/// Effet rétro de scanlines superposé en fond. À placer directement dans un [Stack].
|
|
class ScanlineOverlay extends StatelessWidget {
|
|
const ScanlineOverlay({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Positioned.fill(
|
|
child: ListView.builder(
|
|
itemCount: 100,
|
|
physics: const NeverScrollableScrollPhysics(),
|
|
itemBuilder: (context, index) => Container(
|
|
height: 4,
|
|
margin: const EdgeInsets.only(bottom: 4),
|
|
color: Colors.black.withAlpha(2),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|