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!

Installation

Add to pubspec.yaml.

dependencies:
  ...
  sign_in_button: ^3.0.0

Usage Example

import sign_in_button.dart

import 'package:sign_in_button/sign_in_button.dart';

For built-in buttons.

SignInButton(
  Buttons.google,
  onPressed: () {},
)

// with custom text
SignInButton(
  Buttons.google,
  text: "Sign up with Google",
  onPressed: () {},
)

For mini buttons.

SignInButton(
  Buttons.facebook,
  mini: true,
  onPressed: () {},
)

For self-build buttons.

SignInButtonBuilder(
  text: 'Sign in with Email',
  icon: Icons.email,
  onPressed: () {},
  backgroundColor: Colors.blueGrey.shade700,
)

Built-in Buttons contain

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.

GitHub

View Github