Skip to content

Instantly share code, notes, and snippets.

@nbnD
Created June 22, 2022 11:50
Show Gist options
  • Save nbnD/e7391ebe35cc3cfe63163ab2b670bb16 to your computer and use it in GitHub Desktop.
Save nbnD/e7391ebe35cc3cfe63163ab2b670bb16 to your computer and use it in GitHub Desktop.
Biometric login
import "package:flutter/material.dart";
class SuccessScreen extends StatefulWidget {
const SuccessScreen({Key? key}) : super(key: key);
@override
State<SuccessScreen> createState() => _SuccessScreenState();
}
class _SuccessScreenState extends State<SuccessScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Success Screen"),
),
body: Padding(
padding: const EdgeInsets.all(10),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
const Icon(
Icons.verified_user,
size: 80,
),
const SizedBox(height: 20),
const Text("WELCOME!!!"),
const SizedBox(height: 20),
SizedBox(
width: MediaQuery.of(context).size.width,
child: TextButton(
onPressed: () {
Navigator.pop(context);
},
style: TextButton.styleFrom(
padding: const EdgeInsets.all(20),
backgroundColor: Colors.blue,
shadowColor: const Color(0xFF323247),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
Text(
'LOGOUT',
style: TextStyle(
fontSize: 15,
color: Colors.white,
fontWeight: FontWeight.w600,
wordSpacing: 1.2,
),
)
]),
))
])));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment