Search packages, repositories and app categories

sign_in_button cover
Package detailsv5.0.0

sign_in_button

A Flutter plugin for generating sign-in buttons for different social media accounts.

30-day downloads
25.2K
Likes
176
Pub points
160

Install package

flutter pub add sign_in_button

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that simplifies the creation of sign-in buttons for popular social media platforms. It provides pre-designed, customizable buttons for services like Google, Facebook, Apple, and more, enhancing user authentication flows with consistent, visually appealing UI components. The package is lightweight and easy to integrate, supporting a clean, modern design approach without requiring custom graphics or complex styling. It's ideal for apps needing quick, reliable social login options.

Use cases

  • Adding social login options to mobile apps
  • Creating consistent sign-in UI across platforms
  • Simplifying authentication workflows
  • Integrating Google/Facebook/Apple sign-in
  • Enhancing onboarding experiences

Key features

  • Pre-built social sign-in buttons
  • Customizable button styles
  • Support for multiple providers
  • Lightweight and easy integration
  • Consistent cross-platform design

Suitable for

  • Mobile app developers
  • UI-focused authentication flows
  • Apps using social logins
  • Rapid prototyping
  • Design-driven development

Considerations

  • Limited to predefined social providers
  • No custom icon support
  • Depends on external provider SDKs
  • May require additional configuration for advanced use cases
  • Not suitable for non-social authentication methods

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Fork from flutter_signin_button.

A Flutter plugin for iOS and Android for generating sign-in buttons for different social media account.

Feedback and Pull Requests are most welcome!

Installation

Add to pubspec.yaml.

dependencies:
  ...
  sign_in_button: ^4.0.0

Usage Example

import sign_in_button.dart

import 'package:sign_in_button/sign_in_button.dart';
For built-in buttons.
SignInButton(
  Buttons.google,
  onPressed: () {},
)

// with custom text
SignInButton(
  Buttons.google,
  text: "Sign up with Google",
  onPressed: () {},
)
For mini buttons.
SignInButton(
  Buttons.facebook,
  mini: true,
  onPressed: () {},
)
For self-build buttons.
SignInButtonBuilder(
  text: 'Sign in with Email',
  icon: Icons.email,
  onPressed: () {},
  backgroundColor: Colors.blueGrey.shade700,
)
Built-in Buttons contain
enum Buttons {
  email,
  google,
  googleDark,
  facebook,
  facebookNew,
  gitHub,
  apple,
  appleDark,
  linkedIn,
  pinterest,
  tumblr,
  twitter,
  reddit,
  quora,
  yahoo,
  hotmail,
  xbox,
  microsoft,
}

Refer to example folder and the source code for more information.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package