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
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "لاعب" "defaultPlayerName": "لاعب",
"play": "العب",
"history": "السجل",
"mainTagline": "اكتشف المنتحل قبل فوات الأوان"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "No sha pogut crear la sala. Verifica el Bluetooth.", "couldNotCreateRoom": "No sha pogut crear la sala. Verifica el Bluetooth.",
"cannotStartWithReason": "No es pot iniciar: {reason}", "cannotStartWithReason": "No es pot iniciar: {reason}",
"invalidRoom": "sala invàlida", "invalidRoom": "sala invàlida",
"defaultPlayerName": "Jugador" "defaultPlayerName": "Jugador",
"play": "Jugar",
"history": "Historial",
"mainTagline": "Descobreix limpostor abans que siga massa tard"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Raum konnte nicht erstellt werden. Prüfe Bluetooth.", "couldNotCreateRoom": "Raum konnte nicht erstellt werden. Prüfe Bluetooth.",
"cannotStartWithReason": "Start nicht möglich: {reason}", "cannotStartWithReason": "Start nicht möglich: {reason}",
"invalidRoom": "ungültiger Raum", "invalidRoom": "ungültiger Raum",
"defaultPlayerName": "Spieler" "defaultPlayerName": "Spieler",
"play": "Spielen",
"history": "Verlauf",
"mainTagline": "Finde den Hochstapler, bevor es zu spät ist"
} }
+4 -1
View File
@@ -295,5 +295,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "Player" "defaultPlayerName": "Player",
"play": "Play",
"history": "History",
"mainTagline": "Find the impostor before it is too late"
} }
+4 -1
View File
@@ -327,5 +327,8 @@
} }
}, },
"invalidRoom": "sala inválida", "invalidRoom": "sala inválida",
"defaultPlayerName": "Jugador" "defaultPlayerName": "Jugador",
"play": "Jugar",
"history": "Historial",
"mainTagline": "Descubre al impostor antes de que sea tarde"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "Jokalaria" "defaultPlayerName": "Jokalaria",
"play": "Jokatu",
"history": "Historia",
"mainTagline": "Aurkitu iruzurtia berandu baino lehen"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Impossible de créer le salon. Vérifie le Bluetooth.", "couldNotCreateRoom": "Impossible de créer le salon. Vérifie le Bluetooth.",
"cannotStartWithReason": "Impossible de démarrer : {reason}", "cannotStartWithReason": "Impossible de démarrer : {reason}",
"invalidRoom": "salon invalide", "invalidRoom": "salon invalide",
"defaultPlayerName": "Joueur" "defaultPlayerName": "Joueur",
"play": "Jouer",
"history": "Historique",
"mainTagline": "Découvre limposteur avant quil ne soit trop tard"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "खिलाड़ी" "defaultPlayerName": "खिलाड़ी",
"play": "खेलें",
"history": "इतिहास",
"mainTagline": "बहुत देर होने से पहले impostor को ढूँढें"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Impossibile creare la stanza. Verifica Bluetooth.", "couldNotCreateRoom": "Impossibile creare la stanza. Verifica Bluetooth.",
"cannotStartWithReason": "Impossibile iniziare: {reason}", "cannotStartWithReason": "Impossibile iniziare: {reason}",
"invalidRoom": "stanza non valida", "invalidRoom": "stanza non valida",
"defaultPlayerName": "Giocatore" "defaultPlayerName": "Giocatore",
"play": "Gioca",
"history": "Cronologia",
"mainTagline": "Scopri limpostore prima che sia troppo tardi"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "プレイヤー" "defaultPlayerName": "プレイヤー",
"play": "プレイ",
"history": "履歴",
"mainTagline": "手遅れになる前にインポスターを見つけよう"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "플레이어" "defaultPlayerName": "플레이어",
"play": "플레이",
"history": "기록",
"mainTagline": "늦기 전에 임포스터를 찾아내세요"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "Speler" "defaultPlayerName": "Speler",
"play": "Spelen",
"history": "Geschiedenis",
"mainTagline": "Vind de bedrieger voordat het te laat is"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "Gracz" "defaultPlayerName": "Gracz",
"play": "Graj",
"history": "Historia",
"mainTagline": "Znajdź oszusta, zanim będzie za późno"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Não foi possível criar a sala. Verifica o Bluetooth.", "couldNotCreateRoom": "Não foi possível criar a sala. Verifica o Bluetooth.",
"cannotStartWithReason": "Não é possível iniciar: {reason}", "cannotStartWithReason": "Não é possível iniciar: {reason}",
"invalidRoom": "sala inválida", "invalidRoom": "sala inválida",
"defaultPlayerName": "Jogador" "defaultPlayerName": "Jogador",
"play": "Jogar",
"history": "Histórico",
"mainTagline": "Descobre o impostor antes que seja tarde"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "Игрок" "defaultPlayerName": "Игрок",
"play": "Играть",
"history": "История",
"mainTagline": "Найди самозванца, пока не стало слишком поздно"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "Oyuncu" "defaultPlayerName": "Oyuncu",
"play": "Oyna",
"history": "Geçmiş",
"mainTagline": "Çok geç olmadan sahtekârı bul"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "玩家" "defaultPlayerName": "玩家",
"play": "开始",
"history": "历史",
"mainTagline": "在太晚之前找出冒牌者"
} }
+4 -1
View File
@@ -254,5 +254,8 @@
"couldNotCreateRoom": "Could not create the room. Check Bluetooth.", "couldNotCreateRoom": "Could not create the room. Check Bluetooth.",
"cannotStartWithReason": "Cannot start: {reason}", "cannotStartWithReason": "Cannot start: {reason}",
"invalidRoom": "invalid room", "invalidRoom": "invalid room",
"defaultPlayerName": "玩家" "defaultPlayerName": "玩家",
"play": "開始",
"history": "紀錄",
"mainTagline": "在太晚之前找出冒牌者"
} }
@@ -1233,6 +1233,12 @@ abstract class AppLocalizations {
/// **'Perfiles disponibles'** /// **'Perfiles disponibles'**
String get availableProfiles; String get availableProfiles;
String get play;
String get history;
String get mainTagline;
String get scanThisCodeFromAnotherPhone; String get scanThisCodeFromAnotherPhone;
String get gameUsers; String get gameUsers;
@@ -703,4 +703,13 @@ class AppLocalizationsAr extends AppLocalizations {
@override @override
String get defaultPlayerName => 'لاعب'; String get defaultPlayerName => 'لاعب';
@override
String get play => 'العب';
@override
String get history => 'السجل';
@override
String get mainTagline => 'اكتشف المنتحل قبل فوات الأوان';
} }
@@ -706,4 +706,13 @@ class AppLocalizationsCa extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Jugador'; String get defaultPlayerName => 'Jugador';
@override
String get play => 'Jugar';
@override
String get history => 'Historial';
@override
String get mainTagline => 'Descobreix limpostor abans que siga massa tard';
} }
@@ -709,4 +709,13 @@ class AppLocalizationsDe extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Spieler'; String get defaultPlayerName => 'Spieler';
@override
String get play => 'Spielen';
@override
String get history => 'Verlauf';
@override
String get mainTagline => 'Finde den Hochstapler, bevor es zu spät ist';
} }
@@ -703,4 +703,13 @@ class AppLocalizationsEn extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Player'; String get defaultPlayerName => 'Player';
@override
String get play => 'Play';
@override
String get history => 'History';
@override
String get mainTagline => 'Find the impostor before it is too late';
} }
@@ -705,4 +705,13 @@ class AppLocalizationsEs extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Jugador'; String get defaultPlayerName => 'Jugador';
@override
String get play => 'Jugar';
@override
String get history => 'Historial';
@override
String get mainTagline => 'Descubre al impostor antes de que sea tarde';
} }
@@ -708,4 +708,13 @@ class AppLocalizationsEu extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Jokalaria'; String get defaultPlayerName => 'Jokalaria';
@override
String get play => 'Jokatu';
@override
String get history => 'Historia';
@override
String get mainTagline => 'Aurkitu iruzurtia berandu baino lehen';
} }
@@ -706,4 +706,13 @@ class AppLocalizationsFr extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Joueur'; String get defaultPlayerName => 'Joueur';
@override
String get play => 'Jouer';
@override
String get history => 'Historique';
@override
String get mainTagline => 'Découvre limposteur avant quil ne soit trop tard';
} }
@@ -705,4 +705,13 @@ class AppLocalizationsHi extends AppLocalizations {
@override @override
String get defaultPlayerName => 'खिलाड़ी'; String get defaultPlayerName => 'खिलाड़ी';
@override
String get play => 'खेलें';
@override
String get history => 'इतिहास';
@override
String get mainTagline => 'बहुत देर होने से पहले impostor को ढूँढें';
} }
@@ -706,4 +706,13 @@ class AppLocalizationsIt extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Giocatore'; String get defaultPlayerName => 'Giocatore';
@override
String get play => 'Gioca';
@override
String get history => 'Cronologia';
@override
String get mainTagline => 'Scopri limpostore prima che sia troppo tardi';
} }
@@ -703,4 +703,13 @@ class AppLocalizationsJa extends AppLocalizations {
@override @override
String get defaultPlayerName => 'プレイヤー'; String get defaultPlayerName => 'プレイヤー';
@override
String get play => 'プレイ';
@override
String get history => '履歴';
@override
String get mainTagline => '手遅れになる前にインポスターを見つけよう';
} }
@@ -703,4 +703,13 @@ class AppLocalizationsKo extends AppLocalizations {
@override @override
String get defaultPlayerName => '플레이어'; String get defaultPlayerName => '플레이어';
@override
String get play => '플레이';
@override
String get history => '기록';
@override
String get mainTagline => '늦기 전에 임포스터를 찾아내세요';
} }
@@ -706,4 +706,13 @@ class AppLocalizationsNl extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Speler'; String get defaultPlayerName => 'Speler';
@override
String get play => 'Spelen';
@override
String get history => 'Geschiedenis';
@override
String get mainTagline => 'Vind de bedrieger voordat het te laat is';
} }
@@ -706,4 +706,13 @@ class AppLocalizationsPl extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Gracz'; String get defaultPlayerName => 'Gracz';
@override
String get play => 'Graj';
@override
String get history => 'Historia';
@override
String get mainTagline => 'Znajdź oszusta, zanim będzie za późno';
} }
@@ -707,4 +707,13 @@ class AppLocalizationsPt extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Jogador'; String get defaultPlayerName => 'Jogador';
@override
String get play => 'Jogar';
@override
String get history => 'Histórico';
@override
String get mainTagline => 'Descobre o impostor antes que seja tarde';
} }
@@ -706,4 +706,13 @@ class AppLocalizationsRu extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Игрок'; String get defaultPlayerName => 'Игрок';
@override
String get play => 'Играть';
@override
String get history => 'История';
@override
String get mainTagline => 'Найди самозванца, пока не стало слишком поздно';
} }
@@ -705,4 +705,13 @@ class AppLocalizationsTr extends AppLocalizations {
@override @override
String get defaultPlayerName => 'Oyuncu'; String get defaultPlayerName => 'Oyuncu';
@override
String get play => 'Oyna';
@override
String get history => 'Geçmiş';
@override
String get mainTagline => 'Çok geç olmadan sahtekârı bul';
} }
@@ -702,6 +702,15 @@ class AppLocalizationsZh extends AppLocalizations {
@override @override
String get defaultPlayerName => '玩家'; String get defaultPlayerName => '玩家';
@override
String get play => '开始';
@override
String get history => '历史';
@override
String get mainTagline => '在太晚之前找出冒牌者';
} }
/// The translations for Chinese, as used in Taiwan (`zh_TW`). /// The translations for Chinese, as used in Taiwan (`zh_TW`).
@@ -1274,4 +1283,13 @@ class AppLocalizationsZhTw extends AppLocalizationsZh {
@override @override
String get defaultPlayerName => '玩家'; String get defaultPlayerName => '玩家';
@override
String get play => '開始';
@override
String get history => '紀錄';
@override
String get mainTagline => '在太晚之前找出冒牌者';
} }
+32 -19
View File
@@ -62,20 +62,30 @@ class _PantallaLobbyHostState extends State<PantallaLobbyHost> {
), ),
const SizedBox(height: 14), const SizedBox(height: 14),
PanelFarolero( PanelFarolero(
padding: const EdgeInsets.all(16), padding: const EdgeInsets.fromLTRB(16, 18, 16, 16),
child: Column( child: Column(
children: [ children: [
SizedBox( SizedBox(
width: 196, width: 236,
height: 196, height: 236,
child: Stack( child: Stack(
alignment: Alignment.center, alignment: Alignment.center,
children: [ children: [
Positioned.fill(
child: IgnorePointer(
child: Image.asset(
'assets/ui/generated/join_lobby/qr_frame.png',
fit: BoxFit.contain,
),
),
),
Container( Container(
padding: const EdgeInsets.all(12), width: 178,
height: 178,
padding: const EdgeInsets.all(8),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.circular(18), borderRadius: BorderRadius.circular(12),
boxShadow: [ boxShadow: [
BoxShadow( BoxShadow(
color: TemaApp.colorNaranja.withValues(alpha: 0.18), color: TemaApp.colorNaranja.withValues(alpha: 0.18),
@@ -86,18 +96,10 @@ class _PantallaLobbyHostState extends State<PantallaLobbyHost> {
child: QrImageView( child: QrImageView(
data: nearby.generarDatosQR(widget.nombreSala), data: nearby.generarDatosQR(widget.nombreSala),
version: QrVersions.auto, version: QrVersions.auto,
size: 156, size: 162,
backgroundColor: Colors.white, 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; final color = ok ? TemaApp.colorVerde : TemaApp.colorNaranja;
return Container( return Container(
padding: const EdgeInsets.all(12), constraints: const BoxConstraints(minHeight: 70),
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 10),
decoration: BoxDecoration( decoration: BoxDecoration(
color: color.withValues(alpha: 0.18), color: color.withValues(alpha: 0.18),
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
@@ -237,14 +240,24 @@ class _PantallaLobbyHostState extends State<PantallaLobbyHost> {
), ),
child: Row( child: Row(
children: [ children: [
Icon(icon, color: color), Icon(icon, color: color, size: 26),
const SizedBox(width: 8), const SizedBox(width: 10),
Expanded( 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( Text(
value, value,
style: TextStyle(color: color, fontWeight: FontWeight.bold), style: TextStyle(
color: color,
fontWeight: FontWeight.bold,
fontSize: 18,
),
), ),
], ],
), ),
+32 -13
View File
@@ -92,6 +92,7 @@ class PantallaPrincipal extends StatelessWidget {
SizedBox(height: isWide ? 48 : 34), SizedBox(height: isWide ? 48 : 34),
_HeroInicioPremium( _HeroInicioPremium(
subtitulo: l10n.subtitle, subtitulo: l10n.subtitle,
tagline: l10n.mainTagline,
compact: constraints.maxHeight < 760, compact: constraints.maxHeight < 760,
) )
.animate() .animate()
@@ -99,7 +100,7 @@ class PantallaPrincipal extends StatelessWidget {
.scale(begin: const Offset(0.92, 0.92)), .scale(begin: const Offset(0.92, 0.92)),
SizedBox(height: isWide ? 46 : 34), SizedBox(height: isWide ? 46 : 34),
_BotonInicioPremium.primario( _BotonInicioPremium.primario(
texto: 'Jugar', texto: l10n.play,
icono: Icons.play_arrow_rounded, icono: Icons.play_arrow_rounded,
onPressed: () { onPressed: () {
Navigator.push( Navigator.push(
@@ -134,7 +135,7 @@ class PantallaPrincipal extends StatelessWidget {
).animate().fadeIn(delay: 390.ms).slideY(begin: 0.16), ).animate().fadeIn(delay: 390.ms).slideY(begin: 0.16),
const SizedBox(height: 14), const SizedBox(height: 14),
_AccesoHistorialPremium( _AccesoHistorialPremium(
etiqueta: 'Historial', etiqueta: l10n.history,
onPressed: () { onPressed: () {
Navigator.push( Navigator.push(
context, context,
@@ -270,10 +271,12 @@ class _PerfilInicioPremium extends StatelessWidget {
class _HeroInicioPremium extends StatelessWidget { class _HeroInicioPremium extends StatelessWidget {
final String subtitulo; final String subtitulo;
final String tagline;
final bool compact; final bool compact;
const _HeroInicioPremium({ const _HeroInicioPremium({
required this.subtitulo, required this.subtitulo,
required this.tagline,
required this.compact, required this.compact,
}); });
@@ -327,7 +330,7 @@ class _HeroInicioPremium extends StatelessWidget {
), ),
const SizedBox(height: 4), const SizedBox(height: 4),
Text( Text(
'Descubrí al impostor antes de que sea tarde', tagline,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodyMedium?.copyWith( style: Theme.of(context).textTheme.bodyMedium?.copyWith(
color: TemaApp.colorTextoSecundario, color: TemaApp.colorTextoSecundario,
@@ -423,10 +426,11 @@ class _BotonInicioPremium extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final radius = BorderRadius.circular(hero ? 26 : 22);
return Material( return Material(
color: Colors.transparent, color: Colors.transparent,
child: InkWell( child: InkWell(
borderRadius: BorderRadius.circular(hero ? 26 : 22), borderRadius: radius,
onTap: onPressed, onTap: onPressed,
child: Ink( child: Ink(
height: height, height: height,
@@ -445,41 +449,56 @@ class _BotonInicioPremium extends StatelessWidget {
], ],
), ),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(hero ? 26 : 22), borderRadius: radius,
child: Stack( child: Stack(
alignment: Alignment.center,
children: [ children: [
if (hero)
Positioned.fill( Positioned.fill(
child: Image.asset( child: Image.asset(
'assets/ui/generated/main/main_cta_frame.png', 'assets/ui/premium/card_sheen_overlay.png',
fit: BoxFit.fill, fit: BoxFit.cover,
opacity: AlwaysStoppedAnimation(hero ? 0.20 : 0.14),
), ),
), ),
Row( Padding(
padding: EdgeInsets.symmetric(
horizontal: hero ? 18 : 16,
vertical: hero ? 14 : 11,
),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
SizedBox( SizedBox(
width: hero ? 70 : 62, width: hero ? 46 : 38,
child: Icon( child: Icon(
icono, icono,
color: foreground, color: foreground,
size: hero ? 38 : 27, size: hero ? 36 : 27,
), ),
), ),
const SizedBox(width: 10),
Expanded( Expanded(
child: Center(
child: FittedBox(
fit: BoxFit.scaleDown,
child: Text( child: Text(
texto.toUpperCase(), texto.toUpperCase(),
maxLines: 1,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleLarge?.copyWith( style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: foreground, color: foreground,
fontSize: hero ? 28 : 18, fontSize: hero ? 28 : 18,
fontWeight: FontWeight.w900, fontWeight: FontWeight.w900,
letterSpacing: hero ? 1.6 : 1.0, letterSpacing: hero ? 1.4 : 1.0,
), ),
), ),
), ),
SizedBox(width: hero ? 70 : 62), ),
),
SizedBox(width: hero ? 56 : 48),
], ],
), ),
),
], ],
), ),
), ),
@@ -172,64 +172,81 @@ class _ModoCard extends StatelessWidget {
), ),
], ],
), ),
child: Stack( child: ConstrainedBox(
children: [ constraints: const BoxConstraints(minHeight: 164),
Positioned.fill(
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(28), borderRadius: BorderRadius.circular(28),
child: Stack(
alignment: Alignment.center,
children: [
Positioned.fill(
child: Image.asset( child: Image.asset(
marcoAsset, marcoAsset,
fit: BoxFit.fill, fit: BoxFit.cover,
opacity: const AlwaysStoppedAnimation(0.86), opacity: AlwaysStoppedAnimation(destacado ? 0.22 : 0.18),
),
), ),
), ),
Positioned.fill( Positioned.fill(
child: Image.asset( child: Image.asset(
'assets/ui/premium/card_sheen_overlay.png', 'assets/ui/premium/card_sheen_overlay.png',
fit: BoxFit.cover, fit: BoxFit.cover,
opacity: AlwaysStoppedAnimation(destacado ? 0.34 : 0.22), opacity: AlwaysStoppedAnimation(destacado ? 0.28 : 0.18),
), ),
), ),
Padding( Padding(
padding: const EdgeInsets.all(20), padding: const EdgeInsets.fromLTRB(18, 18, 14, 18),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
width: 64, width: 58,
height: 64, height: 58,
decoration: BoxDecoration( decoration: BoxDecoration(
color: color.withValues(alpha: 0.18), color: color.withValues(alpha: 0.18),
borderRadius: BorderRadius.circular(22), borderRadius: BorderRadius.circular(20),
border: Border.all(color: color.withValues(alpha: 0.72)), border: Border.all(color: color.withValues(alpha: 0.72)),
), ),
child: Icon(icono, color: color, size: 34), child: Icon(icono, color: color, size: 32),
), ),
const SizedBox(width: 16), const SizedBox(width: 16),
Expanded( Expanded(
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [ children: [
Text( FittedBox(
fit: BoxFit.scaleDown,
alignment: Alignment.centerLeft,
child: Text(
titulo.toUpperCase(), titulo.toUpperCase(),
maxLines: 1,
style: Theme.of(context).textTheme.titleLarge?.copyWith( style: Theme.of(context).textTheme.titleLarge?.copyWith(
color: destacado ? TemaApp.colorDorado : Colors.white, color: destacado ? TemaApp.colorDorado : Colors.white,
fontWeight: FontWeight.w900, fontWeight: FontWeight.w900,
letterSpacing: 0.8, letterSpacing: 0.8,
), ),
), ),
const SizedBox(height: 3), ),
const SizedBox(height: 4),
Text( Text(
subtitulo, subtitulo,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.titleMedium?.copyWith(color: color), style: Theme.of(context).textTheme.titleMedium?.copyWith(color: color),
), ),
const SizedBox(height: 7), const SizedBox(height: 8),
Text(descripcion, style: Theme.of(context).textTheme.bodyMedium), Text(
descripcion,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodyMedium?.copyWith(height: 1.18),
),
], ],
), ),
), ),
const SizedBox(width: 8), const SizedBox(width: 8),
Icon(Icons.chevron_right_rounded, color: color, size: 32), Icon(Icons.chevron_right_rounded, color: color, size: 30),
], ],
), ),
), ),
@@ -237,6 +254,8 @@ class _ModoCard extends StatelessWidget {
), ),
), ),
), ),
),
),
); );
} }
} }
+29 -7
View File
@@ -149,6 +149,8 @@ class EncabezadoFarolero extends StatelessWidget {
children: [ children: [
Text( Text(
titulo, titulo,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.headlineMedium?.copyWith( style: Theme.of(context).textTheme.headlineMedium?.copyWith(
color: TemaApp.colorDorado, color: TemaApp.colorDorado,
fontWeight: FontWeight.w900, fontWeight: FontWeight.w900,
@@ -158,6 +160,8 @@ class EncabezadoFarolero extends StatelessWidget {
const SizedBox(height: 3), const SizedBox(height: 3),
Text( Text(
subtitulo!, subtitulo!,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: Theme.of(context).textTheme.bodyMedium, style: Theme.of(context).textTheme.bodyMedium,
), ),
], ],
@@ -290,6 +294,7 @@ class BotonFarolero extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final habilitado = onPressed != null; final habilitado = onPressed != null;
final colorTexto = habilitado ? foreground : TemaApp.colorTextoSecundario;
return Material( return Material(
color: Colors.transparent, color: Colors.transparent,
@@ -297,7 +302,6 @@ class BotonFarolero extends StatelessWidget {
borderRadius: BorderRadius.circular(18), borderRadius: BorderRadius.circular(18),
onTap: onPressed, onTap: onPressed,
child: Ink( child: Ink(
height: 58,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: habilitado gradient: habilitado
? gradient ? gradient
@@ -323,40 +327,58 @@ class BotonFarolero extends StatelessWidget {
), ),
], ],
), ),
child: ConstrainedBox(
constraints: const BoxConstraints(minHeight: 64),
child: ClipRRect(
borderRadius: BorderRadius.circular(18),
child: Stack( child: Stack(
alignment: Alignment.center,
children: [ children: [
Positioned.fill( Positioned.fill(
child: Image.asset( child: Image.asset(
'assets/ui/premium/card_sheen_overlay.png', 'assets/ui/premium/card_sheen_overlay.png',
fit: BoxFit.cover, fit: BoxFit.cover,
opacity: const AlwaysStoppedAnimation(0.18), opacity: const AlwaysStoppedAnimation(0.14),
), ),
), ),
Row( Padding(
padding: const EdgeInsets.symmetric(horizontal: 14, vertical: 12),
child: Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
SizedBox( SizedBox(
width: 58, width: 42,
child: Icon(icono, color: foreground, size: 28), child: Icon(icono, color: colorTexto, size: 28),
), ),
const SizedBox(width: 8),
Expanded( Expanded(
child: Center(
child: FittedBox(
fit: BoxFit.scaleDown,
child: Text( child: Text(
texto.toUpperCase(), texto.toUpperCase(),
maxLines: 1,
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: Theme.of(context).textTheme.titleMedium?.copyWith( style: Theme.of(context).textTheme.titleMedium?.copyWith(
color: foreground, color: colorTexto,
fontSize: 18, fontSize: 18,
fontWeight: FontWeight.w900, fontWeight: FontWeight.w900,
letterSpacing: 0.8, letterSpacing: 0.8,
), ),
), ),
), ),
const SizedBox(width: 58), ),
),
const SizedBox(width: 50),
], ],
), ),
),
], ],
), ),
), ),
), ),
),
),
); );
} }
} }