flutter sign-in button
a flutter plugin for ios and android for generating a sign-in button for different social media account.
installation
add to pubspec.yaml.
dependencies:
...
flutter_signin_button: ^0.2.1
usage example
import flutter_signin_button.dart
import 'package:flutter_signin_button/flutter_signin_button.dart';
for built-in buttons.
signinbutton(
buttons.google,
onpressed: () {},
)
for mini buttons.
signinbutton(
buttons.facebook,
mini: true,
onpressed: () {},
)
for self-build buttons.
signinbuttonbuilder(
title: 'email',
icon: icons.email,
onpressed: () {},
backgroundcolor: colors.bluegrey[700],
)
built-in buttons contain
enum buttons {
email,
google,
facebook,
github,
linkedin,
pinterest,
tumblr,
}
Comments are closed.