12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- import 'dart:async';
-
- import 'package:flutter/material.dart';
- //import 'package:hris_selfservice_mobile/Screens/ForgotPassword/forgotPassword_screen.dart';
- import 'package:hris_selfservice_mobile/Screens/Login/login_screen.dart';
-
- class Splash extends StatefulWidget {
- const Splash({Key? key}) : super(key: key);
-
- @override
- _SplashState createState() => _SplashState();
- }
-
- class _SplashState extends State<Splash> {
- @override
- void initState() {
- super.initState();
- Timer(
- Duration(seconds: 5),
- () => Navigator.pushReplacement(
- context, MaterialPageRoute(builder: (context) => LoginView())));
- }
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- body: Container(
- width: double.infinity,
- height: double.infinity,
- decoration: BoxDecoration(
- gradient: LinearGradient(
- begin: Alignment.topRight,
- end: Alignment.bottomRight,
- colors: [Color(0xFFFF9844),
- Color(0xFFFE8853),
- Color(0xFFFD7267),])),
- child: Center(
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Image.asset(
- 'assets/images/logo.png',
- height: 300,
- width: 300,
- )
- ],
- ),
- )),
- );
- }
- }
|