flutter auth buttons
flutter widget library containing but.tons for authenticating with popular social networks: apple, google, facebook, twitter and microsoft.
usage
add flutter_auth_buttons
to your pubspec.yaml
, then import the dart file:
import 'package:flutter_auth_but-tons/flutter_auth_but-tons.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 butt.ons have a dark mode. enable this with the optional parameter:
googlesigninbutton(
onpressed: () {/* ... */},
darkmode: true, // default: false
)
you can adjust the border-radius of the bu.ttons:
twittersigninbutton(
onpressed: () {},
borderradius: 10.0,
)
Comments are closed.