corrección de botonesa, y por lo visto también traducciones

This commit is contained in:
2026-05-10 23:36:31 +02:00
parent 4751a607bd
commit a8494f7b01
40 changed files with 463 additions and 168 deletions

View File

@@ -62,20 +62,30 @@ class _PantallaLobbyHostState extends State<PantallaLobbyHost> {
),
const SizedBox(height: 14),
PanelFarolero(
padding: const EdgeInsets.all(16),
padding: const EdgeInsets.fromLTRB(16, 18, 16, 16),
child: Column(
children: [
SizedBox(
width: 196,
height: 196,
width: 236,
height: 236,
child: Stack(
alignment: Alignment.center,
children: [
Positioned.fill(
child: IgnorePointer(
child: Image.asset(
'assets/ui/generated/join_lobby/qr_frame.png',
fit: BoxFit.contain,
),
),
),
Container(
padding: const EdgeInsets.all(12),
width: 178,
height: 178,
padding: const EdgeInsets.all(8),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(18),
borderRadius: BorderRadius.circular(12),
boxShadow: [
BoxShadow(
color: TemaApp.colorNaranja.withValues(alpha: 0.18),
@@ -86,18 +96,10 @@ class _PantallaLobbyHostState extends State<PantallaLobbyHost> {
child: QrImageView(
data: nearby.generarDatosQR(widget.nombreSala),
version: QrVersions.auto,
size: 156,
size: 162,
backgroundColor: Colors.white,
),
),
Positioned.fill(
child: IgnorePointer(
child: Image.asset(
'assets/ui/generated/join_lobby/qr_frame.png',
fit: BoxFit.cover,
),
),
),
],
),
),
@@ -229,7 +231,8 @@ class _PantallaLobbyHostState extends State<PantallaLobbyHost> {
}) {
final color = ok ? TemaApp.colorVerde : TemaApp.colorNaranja;
return Container(
padding: const EdgeInsets.all(12),
constraints: const BoxConstraints(minHeight: 70),
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
decoration: BoxDecoration(
color: color.withValues(alpha: 0.18),
borderRadius: BorderRadius.circular(12),
@@ -237,14 +240,24 @@ class _PantallaLobbyHostState extends State<PantallaLobbyHost> {
),
child: Row(
children: [
Icon(icon, color: color),
const SizedBox(width: 8),
Icon(icon, color: color, size: 26),
const SizedBox(width: 10),
Expanded(
child: Text(label, style: Theme.of(context).textTheme.bodySmall),
child: Text(
label,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodySmall?.copyWith(height: 1.08),
),
),
const SizedBox(width: 8),
Text(
value,
style: TextStyle(color: color, fontWeight: FontWeight.bold),
style: TextStyle(
color: color,
fontWeight: FontWeight.bold,
fontSize: 18,
),
),
],
),

View File

@@ -92,6 +92,7 @@ class PantallaPrincipal extends StatelessWidget {
SizedBox(height: isWide ? 48 : 34),
_HeroInicioPremium(
subtitulo: l10n.subtitle,
tagline: l10n.mainTagline,
compact: constraints.maxHeight < 760,
)
.animate()
@@ -99,7 +100,7 @@ class PantallaPrincipal extends StatelessWidget {
.scale(begin: const Offset(0.92, 0.92)),
SizedBox(height: isWide ? 46 : 34),
_BotonInicioPremium.primario(
texto: 'Jugar',
texto: l10n.play,
icono: Icons.play_arrow_rounded,
onPressed: () {
Navigator.push(
@@ -134,7 +135,7 @@ class PantallaPrincipal extends StatelessWidget {
).animate().fadeIn(delay: 390.ms).slideY(begin: 0.16),
const SizedBox(height: 14),
_AccesoHistorialPremium(
etiqueta: 'Historial',
etiqueta: l10n.history,
onPressed: () {
Navigator.push(
context,
@@ -270,10 +271,12 @@ class _PerfilInicioPremium extends StatelessWidget {
class _HeroInicioPremium extends StatelessWidget {
final String subtitulo;
final String tagline;
final bool compact;
const _HeroInicioPremium({
required this.subtitulo,
required this.tagline,
required this.compact,
});
@@ -327,7 +330,7 @@ class _HeroInicioPremium extends StatelessWidget {
),
const SizedBox(height: 4),
Text(
'Descubrí al impostor antes de que sea tarde',
tagline,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: TemaApp.colorTextoSecundario,
@@ -423,10 +426,11 @@ class _BotonInicioPremium extends StatelessWidget {
@override
Widget build(BuildContext context) {
final radius = BorderRadius.circular(hero ? 26 : 22);
return Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(hero ? 26 : 22),
borderRadius: radius,
onTap: onPressed,
child: Ink(
height: height,
@@ -445,40 +449,55 @@ class _BotonInicioPremium extends StatelessWidget {
],
),
child: ClipRRect(
borderRadius: BorderRadius.circular(hero ? 26 : 22),
borderRadius: radius,
child: Stack(
alignment: Alignment.center,
children: [
if (hero)
Positioned.fill(
child: Image.asset(
'assets/ui/generated/main/main_cta_frame.png',
fit: BoxFit.fill,
),
Positioned.fill(
child: Image.asset(
'assets/ui/premium/card_sheen_overlay.png',
fit: BoxFit.cover,
opacity: AlwaysStoppedAnimation(hero ? 0.20 : 0.14),
),
Row(
children: [
SizedBox(
width: hero ? 70 : 62,
child: Icon(
icono,
color: foreground,
size: hero ? 38 : 27,
),
Padding(
padding: EdgeInsets.symmetric(
horizontal: hero ? 18 : 16,
vertical: hero ? 14 : 11,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
SizedBox(
width: hero ? 46 : 38,
child: Icon(
icono,
color: foreground,
size: hero ? 36 : 27,
),
),
),
Expanded(
child: Text(
texto.toUpperCase(),
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: foreground,
fontSize: hero ? 28 : 18,
fontWeight: FontWeight.w900,
letterSpacing: hero ? 1.6 : 1.0,
const SizedBox(width: 10),
Expanded(
child: Center(
child: FittedBox(
fit: BoxFit.scaleDown,
child: Text(
texto.toUpperCase(),
maxLines: 1,
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: foreground,
fontSize: hero ? 28 : 18,
fontWeight: FontWeight.w900,
letterSpacing: hero ? 1.4 : 1.0,
),
),
),
),
),
),
SizedBox(width: hero ? 70 : 62),
],
SizedBox(width: hero ? 56 : 48),
],
),
),
],
),

View File

@@ -172,68 +172,87 @@ class _ModoCard extends StatelessWidget {
),
],
),
child: Stack(
children: [
Positioned.fill(
child: ClipRRect(
borderRadius: BorderRadius.circular(28),
child: Image.asset(
marcoAsset,
fit: BoxFit.fill,
opacity: const AlwaysStoppedAnimation(0.86),
child: ConstrainedBox(
constraints: const BoxConstraints(minHeight: 164),
child: ClipRRect(
borderRadius: BorderRadius.circular(28),
child: Stack(
alignment: Alignment.center,
children: [
Positioned.fill(
child: Image.asset(
marcoAsset,
fit: BoxFit.cover,
opacity: AlwaysStoppedAnimation(destacado ? 0.22 : 0.18),
),
),
),
),
Positioned.fill(
child: Image.asset(
'assets/ui/premium/card_sheen_overlay.png',
fit: BoxFit.cover,
opacity: AlwaysStoppedAnimation(destacado ? 0.34 : 0.22),
),
),
Padding(
padding: const EdgeInsets.all(20),
child: Row(
children: [
Container(
width: 64,
height: 64,
decoration: BoxDecoration(
color: color.withValues(alpha: 0.18),
borderRadius: BorderRadius.circular(22),
border: Border.all(color: color.withValues(alpha: 0.72)),
),
child: Icon(icono, color: color, size: 34),
Positioned.fill(
child: Image.asset(
'assets/ui/premium/card_sheen_overlay.png',
fit: BoxFit.cover,
opacity: AlwaysStoppedAnimation(destacado ? 0.28 : 0.18),
),
const SizedBox(width: 16),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
titulo.toUpperCase(),
style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: destacado ? TemaApp.colorDorado : Colors.white,
fontWeight: FontWeight.w900,
letterSpacing: 0.8,
),
Padding(
padding: const EdgeInsets.fromLTRB(18, 18, 14, 18),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Container(
width: 58,
height: 58,
decoration: BoxDecoration(
color: color.withValues(alpha: 0.18),
borderRadius: BorderRadius.circular(20),
border: Border.all(color: color.withValues(alpha: 0.72)),
),
child: Icon(icono, color: color, size: 32),
),
const SizedBox(width: 16),
Expanded(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
titulo.toUpperCase(),
maxLines: 1,
style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: destacado ? TemaApp.colorDorado : Colors.white,
fontWeight: FontWeight.w900,
letterSpacing: 0.8,
),
),
),
const SizedBox(height: 4),
Text(
subtitulo,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.titleMedium?.copyWith(color: color),
),
const SizedBox(height: 8),
Text(
descripcion,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(height: 1.18),
),
],
),
const SizedBox(height: 3),
Text(
subtitulo,
style: Theme.of(context).textTheme.titleMedium?.copyWith(color: color),
),
const SizedBox(height: 7),
Text(descripcion, style: Theme.of(context).textTheme.bodyMedium),
],
),
),
const SizedBox(width: 8),
Icon(Icons.chevron_right_rounded, color: color, size: 30),
],
),
const SizedBox(width: 8),
Icon(Icons.chevron_right_rounded, color: color, size: 32),
],
),
),
],
),
],
),
),
),
),