Skip to content

Commit

Permalink
updated email verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelSena19 committed Oct 17, 2023
1 parent c66bf9b commit 5f137da
Showing 1 changed file with 14 additions and 20 deletions.
34 changes: 14 additions & 20 deletions lib/screens/verify_email_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class _VerifyEmailScreenState extends State<VerifyEmailScreen> {
bool isEmailVerified = false;
Timer? timer;

void showError(String text){
void showError(String text) {
showErrorDialog(context, text);
}

Expand Down Expand Up @@ -60,26 +60,20 @@ class _VerifyEmailScreenState extends State<VerifyEmailScreen> {
@override
Widget build(BuildContext context) => isEmailVerified
? MainNavigationScreen()
: Scaffold(
appBar: AppBar(
title: const Text('Verify Email'),
: AlertDialog(
title: const Text('Verify Email'),
content: const Text(
'Check your email to verify your account. Check your inbox or your spam folder.',
style: TextStyle(fontSize: 20),
),
body: Column(
children: [
const Padding(
padding: EdgeInsets.fromLTRB(10, 10, 10, 10),
child: Text(
'Check your email to verify your account. Check your inbox or your spam folder.',
style: TextStyle(fontSize: 20),
),
actions: [
TextButton(
onPressed: sendVerificationEmail,
child: const Text(
'Resend Mail',
style: TextStyle(fontSize: 20),
),
TextButton(
onPressed: sendVerificationEmail,
child: const Text(
'Resend Mail',
style: TextStyle(fontSize: 20),
))
],
),
),
],
);
}

0 comments on commit 5f137da

Please sign in to comment.