nuevas pantallas

This commit is contained in:
2026-05-11 18:44:51 +02:00
parent f8545fc783
commit 2503b64d34
18 changed files with 179 additions and 67 deletions
+36 -34
View File
@@ -65,6 +65,8 @@ class _PantallaVotacionState extends State<PantallaVotacion> {
padding: const EdgeInsets.all(16),
child: Column(
children: [
const ArteGameplayFarolero.fase(height: 108),
const SizedBox(height: 10),
// Progreso de votos
Container(
width: double.infinity,
@@ -192,41 +194,41 @@ class _PantallaVotacionState extends State<PantallaVotacion> {
child: Padding(
padding: const EdgeInsets.all(32),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Text('🗳️', style: TextStyle(fontSize: 64)),
const SizedBox(height: 24),
Text(
l10n.allVoted,
style: Theme.of(context).textTheme.headlineMedium,
),
const SizedBox(height: 16),
Text(
l10n.tapToReveal,
style: Theme.of(context).textTheme.bodyMedium,
),
const SizedBox(height: 32),
SizedBox(
width: double.infinity,
height: 56,
child: ElevatedButton.icon(
onPressed: () {
final resultado = estado.procesarVotacion();
if (resultado != null) {
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (_) =>
PantallaResultado(resultado: resultado),
),
);
}
},
icon: const Icon(Icons.visibility),
label: Text(l10n.revealResult),
mainAxisAlignment: MainAxisAlignment.center,
children: [
const ArteGameplayFarolero.fase(height: 132),
const SizedBox(height: 24),
Text(
l10n.allVoted,
style: Theme.of(context).textTheme.headlineMedium,
),
),
],
const SizedBox(height: 16),
Text(
l10n.tapToReveal,
style: Theme.of(context).textTheme.bodyMedium,
),
const SizedBox(height: 32),
SizedBox(
width: double.infinity,
height: 56,
child: ElevatedButton.icon(
onPressed: () {
final resultado = estado.procesarVotacion();
if (resultado != null) {
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (_) =>
PantallaResultado(resultado: resultado),
),
);
}
},
icon: const Icon(Icons.visibility),
label: Text(l10n.revealResult),
),
),
],
),
),
),