remove google and facebook auth
This commit is contained in:
@@ -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'),
|
||||
|
Reference in New Issue
Block a user