Files
sf-app-platform/lib/payments/view/screens/account_created_screen.dart
2025-11-10 12:03:32 +01:00

45 lines
1.8 KiB
Dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:sf_app_platform/payments/view/screens/add_kid_screen.dart';
import 'package:sf_app_platform/payments/view/screens/core/dashboard_screen.dart';
import '../../domain/ports/theme_port.dart';
class AccountCreatedScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
ThemePort theme = context.read<ThemePort>();
final email = "usuario@example.com";
final fullName = "Carlos Pérez Cruz";
return Scaffold(
backgroundColor: theme.getColorFor(ThemeCode.background_primary),
body: Container(
margin: EdgeInsets.all(30),
child: Center(
child: Column(
spacing: 20,
children: [
Spacer(flex: 10),
Icon(Icons.check, color: theme.getColorFor(ThemeCode.background_primary), size: 50),
Text("Cuenta creada", style: TextStyle(fontSize: 30, fontWeight: FontWeight.bold)),
Text.rich(TextSpan(text:"Has creado la cuenta para:\n",
children: [TextSpan(text: fullName, style: TextStyle(fontWeight: FontWeight.bold))])),
Text.rich(TextSpan(text:"Hemos enviado un email de verificación a:\n",
children: [TextSpan(text: email, style: TextStyle(fontWeight: FontWeight.bold))])),
Text("Crea la cuenta de tu peque e ingresa su \nprimera paga para utilizarla con su reloj"),
FilledButton(onPressed: ()=>{
Navigator.pushReplacement(context, MaterialPageRoute(builder: (_)=>AddKidScreen()))
}, child: Text("Continuar")),
Spacer(flex: 8)
],
),
)
)
);
}
}