flutter_auth_buttons 0.2.1
flutter_auth_buttons: ^0.2.1 copied to clipboard
Buttons for authenticating with social networks
Flutter Auth Buttons #
Flutter widget library containing buttons for authenticating with popular social networks.
These buttons do not contain authentication logic. They are designed to be used with authentication packages,
such as firebase_auth. Use the onPressed
attribute to
capture the button press and call your authentication logic within that.
GoogleSignInButton(onPressed: () {
// call authentication logic
});
Supported buttons #
Screenshots of the supported buttons are shown below.
Google #
Google suggests two default button styles on it's branding page.
Light button:
Dark button:
Facebook #
Facebook has fewer guidelines for designing their buttons (see here). This button was designed to match the example given in their documentation.
Usage #
Add flutter_auth_buttons
to your pubspec.yaml
, then import the Dart file:
import 'package:flutter_auth_buttons/flutter_auth_buttons.dart';
See the documentation for API details.