social_auth_buttons

Pub Version (auth_buttons) Pub Version (social_auth_buttons)
license: MIT style: effective dart

Social Auth Buttons is a fork of auth_buttons flutter widget library. It includes buttons for authenticating with the most popular social networks and with email/password.

Recommendation

We recommend you to using show special when you want use some button. show help you importing part of library.

import 'package:auth_buttons/social_auth_buttons.dart'
    show GoogleAuthButton, AuthButtonStyle;

Overview

There are two style you can choose between them:

  1. Default
  2. Icon

Note: all api is documented click Ctrl + Q to read the docs if you are using Android Studio or Intellij Idea on Visual Studio Code just hover over.

default-light

This is happen if you know you some property, other way click Ctrl + space then Ctrl + Q double click and the result will be like so. default-light

Using

You need to use just the following code:

Default style

GoogleAuthButton(
  onPressed: () {},
  darkMode: false,
),

default-light

GoogleAuthButton(
  onPressed: () {},
  darkMode: true,
),

default-dark

Icon Style

GoogleAuthButton(
  onPressed: () {},
  darkMode: false,
  style: AuthButtonStyle.icon,
),

light-icon

GoogleAuthButton(
  onPressed: () {},
  darkMode: true,
  style: AuthButtonStyle.icon,
),

dark-icon

Do same think with the other buttons, when you want customize any button you can do it just passing a property which you want.

Full property you can passing:

GoogleAuthButton(
  onPressed: () {},
  buttonColor: Colors.white,
  splashColor: Colors.grey,
  elevation: 2.0,
  borderRadius: 8.0,
  padding: EdgeInsets.all(8.0),
  text: 'Sign in with Google',
  textStyle: TextStyle(),
  darkMode: false,
  borderColor: Colors.red,
  borderWidth: 1.0,
  style: AuthButtonStyle.icon,
  width: 280.0,
  height: 50.0,
  iconSize: 35.0,
  separator: 15.0,
),

return up

Libraries

apple_auth_button
auth_button_style
button_contents
colors
email_password_auth_button
facebook_auth_button
github_auth_button
google_auth_button
images_url
microsoft_auth_button
shared_button
social_auth_buttons
twitter_auth_button