2024-05-20 01:16:54 +02:00
|
|
|
import 'package:flutter/material.dart';
|
2024-06-17 20:39:56 +02:00
|
|
|
import '../components/text_bold.dart';
|
2024-06-16 01:45:29 +02:00
|
|
|
import '../services/auth/auth_gate.dart';
|
2024-08-13 18:01:49 +02:00
|
|
|
import '../services/auth/auth_service.dart';
|
|
|
|
import '../services/user_service.dart';
|
2024-05-20 01:16:54 +02:00
|
|
|
|
|
|
|
class RegistrationCompletePage extends StatelessWidget {
|
|
|
|
const RegistrationCompletePage({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-08-13 18:01:49 +02:00
|
|
|
// Set the user as active when the page is built
|
|
|
|
UserService.setUserActive(true, AuthService().getCurrentUser()!.uid);
|
|
|
|
|
2024-05-20 01:16:54 +02:00
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
automaticallyImplyLeading: false, // remove back button
|
|
|
|
title: const Text('Registration Complete'),
|
|
|
|
),
|
|
|
|
body: Center(
|
2024-05-30 16:37:34 +02:00
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
const Icon(
|
|
|
|
Icons.check_circle,
|
|
|
|
color: Colors.green,
|
|
|
|
size: 100,
|
|
|
|
),
|
|
|
|
const SizedBox(height: 20),
|
2024-06-17 17:57:32 +02:00
|
|
|
const TextBold(
|
|
|
|
text: 'Registration completed!',
|
|
|
|
fontSize: 24,
|
2024-05-30 16:37:34 +02:00
|
|
|
),
|
|
|
|
const SizedBox(height: 40),
|
|
|
|
const Text(
|
2024-06-18 15:01:38 +02:00
|
|
|
'Enhance your profile by adding additional information, '
|
|
|
|
'such as a short biography or a profile picture, '
|
|
|
|
'in the profile settings.',
|
2024-05-30 16:37:34 +02:00
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(fontSize: 18),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 80),
|
|
|
|
const Text(
|
|
|
|
'You can enjoy the app now.',
|
|
|
|
style: TextStyle(fontSize: 18),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
ElevatedButton(
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.push(
|
|
|
|
context,
|
2024-06-16 01:45:29 +02:00
|
|
|
MaterialPageRoute(builder: (context) => const AuthGate()),
|
2024-05-30 16:37:34 +02:00
|
|
|
);
|
|
|
|
},
|
|
|
|
child: const Text('S T A R T'),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
2024-05-22 02:46:46 +02:00
|
|
|
),
|
2024-05-20 01:16:54 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|