63 lines
1.7 KiB
Dart
63 lines
1.7 KiB
Dart
import 'dart:async';
|
|
|
|
import 'package:cheminova/screens/home_screen.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_svg/svg.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
class VerificationSuccessScreen extends StatefulWidget {
|
|
const VerificationSuccessScreen({super.key});
|
|
|
|
@override
|
|
State<VerificationSuccessScreen> createState() =>
|
|
_VerificationSuccessScreenState();
|
|
}
|
|
|
|
class _VerificationSuccessScreenState extends State<VerificationSuccessScreen> {
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
Timer(const Duration(seconds: 2), () {
|
|
Get.offAll(() => const HomeScreen(), transition: Transition.fadeIn);
|
|
});
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Stack(
|
|
fit: StackFit.expand,
|
|
children: [
|
|
Image.asset(
|
|
'assets/images/image_1.png',
|
|
fit: BoxFit.cover,
|
|
),
|
|
Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Container(
|
|
margin: const EdgeInsets.symmetric(vertical: 20),
|
|
child: Text(
|
|
'Verification Successful',
|
|
style: GoogleFonts.getFont(
|
|
'Roboto',
|
|
fontWeight: FontWeight.w400,
|
|
fontSize: 24,
|
|
height: 1.5,
|
|
color: const Color(0xFFFFFFFF),
|
|
),
|
|
),
|
|
),
|
|
SvgPicture.asset(
|
|
'assets/svg/success.svg',
|
|
height: Get.height * 0.12,
|
|
),
|
|
],
|
|
)
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|