Fork from flutter_signin_button.
A Flutter plugin for iOS and Android for generating sign-in buttons for different social media account.
Feedback and Pull Requests are most welcome!
Add to pubspec.yaml.
dependencies:
...
sign_in_button: ^3.0.0
import sign_in_button.dart
import 'package:sign_in_button/sign_in_button.dart';
SignInButton(
Buttons.google,
onPressed: () {},
)
// with custom text
SignInButton(
Buttons.google,
text: "Sign up with Google",
onPressed: () {},
)
SignInButton(
Buttons.facebook,
mini: true,
onPressed: () {},
)
SignInButtonBuilder(
text: 'Sign in with Email',
icon: Icons.email,
onPressed: () {},
backgroundColor: Colors.blueGrey.shade700,
)
enum Buttons {
email,
google,
googleDark,
facebook,
facebookNew,
gitHub,
apple,
appleDark,
linkedIn,
pinterest,
tumblr,
twitter,
reddit,
quora,
yahoo,
hotmail,
xbox,
microsoft,
}
Refer to example folder and the source code for more information.