import 'package:flutter/material.
dart';
class InicialPage extends StatefulWidget {
const InicialPage({[Link]});
@override
State<InicialPage> createState() => _InicialPageState();
}
class _InicialPageState extends State<InicialPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Container(
decoration: const BoxDecoration(
gradient: LinearGradient(
begin: [Link],
end: [Link],
colors: [
[Link](255, 179, 242, 252),
[Link](255, 76, 148, 153),
],
),
),
),
// Brilho atrás da logo
Positioned(
top: [Link](context).[Link] * 0.2,
left: [Link](context).[Link] * 0.25,
child: Container(
width: [Link](context).[Link] * 0.5,
height: [Link](context).[Link] * 0.5,
decoration: BoxDecoration(
shape: [Link],
color: [Link](0.2),
),
),
),
// Conteúdo principal
Center(
child: Column(
mainAxisAlignment: [Link],
children: [
// Logo com espaçamento melhorado
SizedBox(
width: [Link](context).[Link] * 0.6,
child: [Link]('assets/images/[Link]'),
),
const SizedBox(height: 50),
// Botão Login
SizedBox(
width: [Link](context).[Link] * 0.6,
child: ElevatedButton(
onPressed: () {
[Link](context, '/login');
},
style: [Link](
backgroundColor: const Color(0xFF266B70),
padding: const [Link](vertical: 16),
shape: RoundedRectangleBorder(
borderRadius: [Link](8),
),
elevation: 4,
),
child: const Text(
'Login',
style: TextStyle(
fontSize: 20,
color: [Link],
fontFamily: 'Poppins',
),
),
),
),
const SizedBox(height: 20),
// Botão Cadastro
SizedBox(
width: [Link](context).[Link] * 0.6,
child: OutlinedButton(
onPressed: () {
[Link](context, '/cadastro');
},
style: [Link](
side: const BorderSide(color: [Link]),
padding: const [Link](vertical: 16),
shape: RoundedRectangleBorder(
borderRadius: [Link](8),
),
),
child: const Text(
'Cadastre-se',
style: TextStyle(
fontSize: 20,
color: [Link],
fontFamily: 'Poppins',
),
),
),
),
],
),
),
],
),
);
}
}