2024-05-20 01:16:54 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'home_page.dart';
|
|
|
|
|
|
|
|
class RegistrationCompletePage extends StatelessWidget {
|
|
|
|
const RegistrationCompletePage({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
automaticallyImplyLeading: false, // remove back button
|
|
|
|
title: const Text('Registration Complete'),
|
|
|
|
),
|
|
|
|
body: Center(
|
2024-05-22 02:46:46 +02:00
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
const Icon(
|
|
|
|
Icons.check_circle,
|
|
|
|
color: Colors.green,
|
|
|
|
size: 100,
|
|
|
|
),
|
|
|
|
const SizedBox(height: 20),
|
|
|
|
const Text(
|
|
|
|
'Registration completed!',
|
|
|
|
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
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,
|
|
|
|
MaterialPageRoute(builder: (context) => HomePage()),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: const Text("S T A R T"),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
2024-05-20 01:16:54 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|