MansiShah12 / flutter_auth_buttons

Buttons for signing into popular social platforms

Home Page:https://pub.dartlang.org/packages/flutter_auth_buttons

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter Auth Buttons

Flutter widget library containing buttons for authenticating with popular social networks: Google, Facebook, Twitter and Microsoft.

Screenshot

Usage

Add flutter_auth_buttons to your pubspec.yaml, then import the Dart file:

import 'package:flutter_auth_buttons/flutter_auth_buttons.dart';

Use the onPressed attribute to capture the button press and call your authentication logic within that. To disable the button, pass null or omit the attribute.

FacebookSignInButton(onPressed: () {
  // call authentication logic
});

Some buttons have a dark mode. Enable this with the optional parameter:

GoogleSignInButton(
  onPressed: () {/* ... */}, 
  darkMode: true, // default: false
)

You can adjust the border-radius of the buttons:

TwitterSignInButton(
  onPressed: () {},
  borderRadius: 10.0,
)

See the documentation for API details: https://pub.dartlang.org/documentation/flutter_auth_buttons/latest/.

About

Buttons for signing into popular social platforms

https://pub.dartlang.org/packages/flutter_auth_buttons

License:BSD 2-Clause "Simplified" License


Languages

Language:Dart 95.9%Language:Objective-C 4.1%