authentication_buttons

Creator: coderz1093

Last updated:

0 purchases

authentication_buttons Image
authentication_buttons Images

Languages

Categories

Add to Cart

Description:

authentication buttons

Authentication Buttons #
Authentication Buttons allows users to build social media authentication buttons for all popular SSO systems.
Usage #
Add the dependency in pubsec.yaml file.
dependencies:
flutter:
sdk: flutter
authentication_buttons: 0.0.5
copied to clipboard
How to Use #
AuthenticationButton(
authenticationMethod: AuthenticationMethod.google,
onPressed: () {},
)
copied to clipboard
Additional parameters that you might supply include:


AuthenticationMethod

google
apple
microsoft
facebook
reddit
twitter
linkedin
github
medium
dribbble
spotify
pinterest



ButtonSize

small
large



ShowLoader

true
false



Below is the example with all arguments supplied:
AuthenticationButton(
authenticationMethod: AuthenticationMethod.apple,
onPressed: () {},
showLoader: true,
),
copied to clipboard
Screenshots #



Example #
import 'package:authentication_buttons/src/authentication_button.dart';
import 'package:authentication_buttons/src/utils/enums/authentication_method.dart';
import 'package:authentication_buttons/src/utils/enums/button_size.dart';
import 'package:flutter/material.dart';

void main() => runApp(
const MaterialApp(
title: 'Authentication Buttons',
home: AuthenticationButtonsExample(),
),
);

class AuthenticationButtonsExample extends StatelessWidget {
const AuthenticationButtonsExample({
super.key,
});

@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text(
'Authentication Buttons',
),
),
body: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
AuthenticationButton(
authenticationMethod: AuthenticationMethod.google,
onPressed: () {},
),
AuthenticationButton(
authenticationMethod: AuthenticationMethod.pinterest,
onPressed: () {},
showLoader: true,
),
AuthenticationButton(
authenticationMethod: AuthenticationMethod.microsoft,
onPressed: () {},
showLoader: true,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
AuthenticationButton(
authenticationMethod: AuthenticationMethod.twitter,
onPressed: () {},
buttonSize: ButtonSize.small,
),
AuthenticationButton(
authenticationMethod: AuthenticationMethod.dribbble,
onPressed: () {},
buttonSize: ButtonSize.small,
showLoader: true,
),
AuthenticationButton(
authenticationMethod: AuthenticationMethod.spotify,
onPressed: () {},
buttonSize: ButtonSize.small,
),
],
),
],
),
);
}
}
copied to clipboard
Contributing #
Pull requests are welcome 🙏
For major changes, please open an issue on github

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.