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

@@ -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),
],
),
),
],
),