flutter_social_auth 0.0.3
flutter_social_auth: ^0.0.3 copied to clipboard
Flutter package for login with social accounts like google, facebook, apple
0.0.3 #
Flutter package for login with social accounts like google, facebook, apple
Getting started #
Follow the instructions:
google_sign_in here.
flutter_facebook_auth here.
sign_in_with_apple here.
Example #
import 'package:flutter/material.dart';
import 'package:flutter_social_auth/flutter_social_auth.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: AuthView(
onLogin: (userAuthInfo) {
if (userAuthInfo != null) {
print(userAuthInfo);
}
},
appName: 'appName',
domain: 'https://domain',
onSendEmailVerifyCode: (result, email) {
if (result) {
print(email);
}
},
onVerifyCode: (verifyCodeStatus) {
print(verifyCodeStatus.name);
},
),
);
}
}