login_button_suite 0.0.1 copy "login_button_suite: ^0.0.1" to clipboard
login_button_suite: ^0.0.1 copied to clipboard

A Flutter package for social login buttons (Google, Apple, LinkedIn)

login_button_suite #

A Flutter package providing customizable social login buttons for Google, Apple, and LinkedIn (and may more to come).

Features. #

  • Pre-styled buttons for Google, Apple, and LinkedIn
  • Customizable text and styles
  • Loading state support
  • Easy to implement

Important #

This package doesn't include logo assets. You must provide your own logo images and declare them in your pubspec.yaml:

flutter:
  assets:
    - assets/images/google.png
    - assets/images/apple_white.png
    - assets/images/apple_black.png
    - assets/images/linkedin.png

I recommend you to get the icons from [Flaticon][https://www.flaticon.com/]

Installation #

dependencies:
  login_buttons: ^1.0.0

Don't forget to add your logo assets:

// Google Login Button
LoginButtons.google(
style: LoginButtonStyle.black,
onPressed: () {
    setState(() => isLoading = true);
    Future.delayed(const Duration(seconds: 2), () {
        setState(() => isLoading = false);
    });
},
isLoading: isLoading,
),

// Apple Login Button
LoginButtons.apple(
style: LoginButtonStyle.black,
onPressed: () => handleAppleLogin()),

// LinkedIn Login Button
LoginButtons.linkedin(
style: LoginButtonStyle.black,
    onPressed: () => handleLinkedInLogin()),

Customization #

Each button accepts these parameters:

  • onPressed: Callback function when button is pressed
  • text: Custom button text
  • style: LoginButtonStyle.white or LoginButtonStyle.black
  • isLoading: Show loading indicator instead of icon

License #

This project is licensed under the MIT License - see the LICENSE file for details.

Say Hello #

  • [LinkedIn][https://www.linkedin.com/in/benmukanirwa/]
  • [X][https://x.com/benmukanirwa]
  • [IG][https://www.instagram.com/__ben.mk/]
3
likes
130
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for social login buttons (Google, Apple, LinkedIn)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_spinkit

More

Packages that depend on login_button_suite