super assets
This commit is contained in:
@@ -323,9 +323,8 @@ class _PantallaCrearPartidaState extends State<PantallaCrearPartida> {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
EncabezadoFarolero(
|
||||
icono: Icons.groups,
|
||||
titulo: '¿Cómo quieres jugar?',
|
||||
_CrearPartidaHeader(
|
||||
titulo: '?C?mo quieres jugar?',
|
||||
subtitulo: l10n.playersRange,
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
@@ -610,3 +609,63 @@ class _PantallaCrearPartidaState extends State<PantallaCrearPartida> {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _CrearPartidaHeader extends StatelessWidget {
|
||||
final String titulo;
|
||||
final String subtitulo;
|
||||
|
||||
const _CrearPartidaHeader({
|
||||
required this.titulo,
|
||||
required this.subtitulo,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return LayoutBuilder(
|
||||
builder: (context, constraints) {
|
||||
final ancho = constraints.maxWidth.clamp(320.0, 720.0).toDouble();
|
||||
return Center(
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: ancho),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
AspectRatio(
|
||||
aspectRatio: 2,
|
||||
child: Image.asset(
|
||||
'assets/ui/generated/create_game/create_game_header_art.png',
|
||||
fit: BoxFit.contain,
|
||||
opacity: const AlwaysStoppedAnimation(0.96),
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
titulo,
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.headlineSmall?.copyWith(
|
||||
color: TemaApp.colorDorado,
|
||||
fontWeight: FontWeight.w900,
|
||||
shadows: [
|
||||
Shadow(
|
||||
color: TemaApp.colorNaranja.withValues(alpha: 0.55),
|
||||
blurRadius: 16,
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
subtitulo,
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.bodyMedium?.copyWith(
|
||||
color: TemaApp.colorTextoSecundario,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user