nao aparecer para outro utilizador

This commit is contained in:
2026-03-19 10:40:53 +00:00
parent 8adea3f7b6
commit 6c89b7ab8c
6 changed files with 74 additions and 54 deletions

View File

@@ -11,32 +11,49 @@ class BasketTrackHeader extends StatelessWidget {
Widget build(BuildContext context) {
return Column(
children: [
SizedBox(
width: 200 * context.sf,
height: 200 * context.sf,
child: Image.asset(
'assets/playmaker-logos.png',
fit: BoxFit.contain,
),
),
Text(
'BasketTrack',
style: TextStyle(
fontSize: 36 * context.sf,
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.onSurface, // 👇 Adaptável ao Modo Escuro
),
),
SizedBox(height: 6 * context.sf),
Text(
'Gere as tuas equipas e estatísticas',
style: TextStyle(
fontSize: 16 * context.sf,
color: Colors.grey, // Mantemos cinza para subtítulo
fontWeight: FontWeight.w500,
),
textAlign: TextAlign.center,
// Usamos um Stack para controlar a sobreposição exata
Stack(
alignment: Alignment.center,
children: [
// 1. A Imagem (Aumentada para 320)
SizedBox(
width: 320 * context.sf,
height: 350 * context.sf,
child: Image.asset(
'assets/playmaker-logos.png',
fit: BoxFit.contain,
),
),
// 2. O Texto "subido" para dentro da área da imagem
Positioned(
bottom: 5 * context.sf, // Ajusta este valor para aproximar/afastar do centro da logo
child: Column(
children: [
Text(
'BasketTrack',
style: TextStyle(
fontSize: 36 * context.sf,
fontWeight: FontWeight.bold,
color: Theme.of(context).colorScheme.onSurface,
),
),
SizedBox(height: 4 * context.sf),
Text(
'Gere as tuas equipas e estatísticas',
style: TextStyle(
fontSize: 16 * context.sf,
color: Colors.grey,
fontWeight: FontWeight.w500,
),
textAlign: TextAlign.center,
),
],
),
),
],
),
// Espaço extra para não bater nos campos de login logo a seguir
SizedBox(height: 10 * context.sf),
],
);
}