social_media_logins
Flutter Plugin to login via Social Media Accounts.
Available Social Media Logins:
- Apple
Getting Started
To use this plugin:
- Add
social_media_logins
as dependency in your pubspec.yaml file
social_media_logins:
git:
url: git://github.com/responilla07/social_media_logins.git
ref: main
Note* please refer to the documentation of the plugins owner use in this plugin
Example:
import 'package:social_media_logins/social_media_logins.dart';
// Login:
// Facebook
var fbRes = await Facebook.login();
print('Facebook Account Details: $fbRes');
// Google
GoogleSignInAccount googleAccnt = await Google.login();
print('Google Account Email: ${googleUser.email}');
// Apple
AuthorizationCredentialAppleID credentials = await Apple.login();
print('Apple Id Email: ${credentials.email}');
// Logout:
// Facebook
await Facebook.logout();
// Google
await Google.logout();
// Apple
// No Available
This is just the simplyfied Flutter Plugin use for one of the popular flutter plugin for social media login.
The following plugins are:
- flutter_login_facebook
- google_sign_in
- sign_in_with_apple