Remove Login Eror Screen

This commit is contained in:
Kelvin Samuel 2022-05-22 18:06:55 +07:00
parent ef2174aaa9
commit 3e9c12e22e

View file

@ -1,84 +0,0 @@
import 'package:lottie/lottie.dart';
import 'package:flutter/material.dart';
class LoginError extends StatefulWidget {
const LoginError({Key? key}) : super(key: key);
@override
State<LoginError> createState() => LoginErrorState();
}
class LoginErrorState extends State<LoginError> {
@override
Widget build(BuildContext context) {
return SafeArea(
child: Container(
margin: const EdgeInsets.fromLTRB(10, 10, 10, 5),
child: Card(
color: const Color(0xff212226),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(15),
),
child: SingleChildScrollView(
child: Container(
padding: const EdgeInsets.fromLTRB(10, 0, 10, 0),
height: MediaQuery.of(context).size.height,
width: double.infinity,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Column(
children: [
const SizedBox(
height: 50,
),
const Text(
"Error",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 40),
),
const SizedBox(
height: 45,
),
Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
Lottie.asset(
"assets/lottie/login_error.json",
frameRate: FrameRate.max,
alignment: Alignment.center,
height: 350,
fit: BoxFit.fitHeight,
),
],
),
const SizedBox(
height: 70,
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text(
"An error has occured\nMake sure to check\nif your email has been \nregistered before.",
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 25),
),
],
)
],
),
],
),
),
),
),
),
);
}
}