搜尋套件、儲存庫與 APP 分類

sign_in_button 封面
套件詳情v5.0.0

sign_in_button

一個用於產生不同社群媒體帳戶登入按鈕的 Flutter 插件。

近 30 天下載
2.5萬
喜歡數
176
Pub 分數
160

安裝套件

flutter pub add sign_in_button

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 套件,可簡化為流行社群媒體平台建立登入按鈕。它提供預設計、可自訂的按鈕,適用於 Google、Facebook、Apple 等服務,透過一致且視覺上吸引人的 UI 元件提升使用者驗證流程。此套件輕量且易於整合,支援乾淨現代的設計方式,無需自訂圖形或複雜樣式。非常適合需要快速可靠的社交登入選項的應用程式。

適用情境

  • 向移動應用添加社交登錄選項
  • 在各個平台上建立一致的登入使用者介面
  • 簡化驗證工作流程
  • 整合 Google/Facebook/Apple 登入
  • 提升入職體驗

主要特色

  • 預建構的社交登入按鈕
  • 可自訂的按鈕樣式
  • 對多個提供者的支援
  • 輕量且易於整合
  • 一致的跨平台設計

適合對象

  • 行動應用開發者
  • 以使用者介面為重點的驗證流程
  • 使用社交登入的應用
  • 快速原型設計
  • 以設計為導向的開發

使用建議

  • 僅限預定義的社交提供者
  • 不支援自定圖示
  • 依賴外部提供方 SDK
  • 可能需要額外設定以用於進階使用案例
  • 不適用於非社交驗證方法

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案