39 lines
1.3 KiB
Dart
39 lines
1.3 KiB
Dart
import 'package:cheminova/screens/home_screen.dart';
|
|
import 'package:cheminova/widgets/common_background.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class VerifySuccessFullScreen extends StatefulWidget {
|
|
const VerifySuccessFullScreen({super.key});
|
|
|
|
@override
|
|
State<VerifySuccessFullScreen> createState() => _VerifySuccessFullScreenState();
|
|
}
|
|
|
|
class _VerifySuccessFullScreenState extends State<VerifySuccessFullScreen> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
Future.delayed(const Duration(seconds: 2), () {
|
|
Navigator.pushReplacement(
|
|
context, MaterialPageRoute(builder: (context) => const HomePage()));
|
|
});
|
|
}
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: CommonBackground(
|
|
child: Center(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
const Text('Verification successful',
|
|
style: TextStyle(
|
|
fontSize: 36,
|
|
color: Colors.white,
|
|
fontWeight: FontWeight.w400,
|
|
fontFamily: 'Anek')),
|
|
const SizedBox(height: 20), // Add some space between the text and the image
|
|
Image.asset('assets/check_circle.png', )]))));
|
|
}
|
|
}
|