60 lines
1.8 KiB
Dart
60 lines
1.8 KiB
Dart
// lib/screens/start_screen.dart
|
|
import 'package:flutter/material.dart';
|
|
import 'package:kzeduca_app/screens/dashboard_screen.dart';
|
|
|
|
class StartScreen extends StatelessWidget {
|
|
const StartScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.black,
|
|
body: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
const Text(
|
|
'KzEduca',
|
|
style: TextStyle(
|
|
color: Colors.white,
|
|
fontSize: 48,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
const SizedBox(height: 10),
|
|
const Text(
|
|
'A sua jornada financeira em Angola começa aqui.',
|
|
style: TextStyle(
|
|
color: Colors.white70,
|
|
fontSize: 16,
|
|
),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
const SizedBox(height: 50),
|
|
ElevatedButton(
|
|
onPressed: () {
|
|
// Navega para a tela do menu principal do jogo
|
|
Navigator.push(
|
|
context,
|
|
MaterialPageRoute(builder: (context) => const DashboardScreen()),
|
|
);
|
|
},
|
|
style: ElevatedButton.styleFrom(
|
|
foregroundColor: Colors.white,
|
|
backgroundColor: const Color(0xFF8A2BE2),
|
|
padding: const EdgeInsets.symmetric(horizontal: 40, vertical: 15),
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(10),
|
|
),
|
|
),
|
|
child: const Text(
|
|
'Começar',
|
|
style: TextStyle(fontSize: 18),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
} |