remove google and facebook auth

This commit is contained in:
2025-03-06 20:21:59 +01:00
parent c936a02836
commit 7f3240242d
3 changed files with 1 additions and 103 deletions

View File

@@ -39,26 +39,6 @@ class _LoginDemoState extends State<LoginDemo> with ShowAlertDialog {
}
}
Future<void> _loginWithFacebook(BuildContext context) async {
String? token = await _authService.signInWithFacebook();
if (token != null) {
Navigator.push(
context, MaterialPageRoute(builder: (_) => ListItemMenu()));
} else {
showAlertDialog(context, "Erreur", "Échec de la connexion Facebook");
}
}
Future<void> _loginWithGoogle(BuildContext context) async {
String? token = await _authService.signInWithGoogle();
if (token != null) {
Navigator.push(
context, MaterialPageRoute(builder: (_) => ListItemMenu()));
} else {
showAlertDialog(context, "Erreur", "Échec de la connexion Google");
}
}
@override
void initState() {
super.initState();
@@ -149,33 +129,6 @@ class _LoginDemoState extends State<LoginDemo> with ShowAlertDialog {
style: TextStyle(color: Colors.white, fontSize: 25)),
),
),
SizedBox(height: 20),
Container(
height: 50,
width: 250,
decoration: BoxDecoration(
color: Colors.blueAccent,
borderRadius: BorderRadius.circular(20)),
child: TextButton(
onPressed: () => _loginWithFacebook(context),
child: Text('Login with Facebook',
style: TextStyle(color: Colors.white, fontSize: 20)),
),
),
SizedBox(height: 20),
// Google Login Button
Container(
height: 50,
width: 250,
decoration: BoxDecoration(
color: Colors.redAccent,
borderRadius: BorderRadius.circular(20)),
child: TextButton(
onPressed: () => _loginWithGoogle(context),
child: Text('Login with Google',
style: TextStyle(color: Colors.white, fontSize: 20)),
),
),
SizedBox(height: 130),
InkWell(
child: Text('New User? Create Account'),