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 suggests two default button styles on it’s
branding page.
light button:
dark button:
facebook has fewer guidelines for designing their buttons (see
here). this button was designed to
match the example given in their documentation.
like facebook, twitter doesn’t prescribe a precise button (see
here).
this button was designed to match the colours and style used in their example images.
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.
Comments are closed.