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

flutter_signin_button 封面
套件詳情v2.1.1

flutter_signin_button

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

近 30 天下載
1.2萬
喜歡數
894
Pub 分數
90

安裝套件

flutter pub add flutter_signin_button

套件介紹

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

一個 Flutter 插件,為流行的社群媒體平台提供預設計的登入按鈕,支援 iOS 與 Android。它透過提供可自訂且視覺上一致的按鈕,簡化了社交驗證的整合,這些按鈕符合平台指南。此套件非常適合需要透過 Google、Facebook、Apple 或其他提供者快速實現使用者入門之應用程式。它處理按鈕樣式與事件回呼,減少冗餘程式碼。該外掛輕量且容易實作,是開發者優先考慮乾淨介面與快速設定時的首選。

適用情境

  • 社交登入實現
  • 使用第三方帳戶進行使用者引導
  • 簡化身分驗證介面
  • 跨平台登入按鈕
  • 與OAuth提供者快速整合

主要特色

  • 預建構的社交媒體按鈕
  • 跨平台支援(iOS 與 Android)
  • 可自訂的按鈕樣式
  • 登入操作的事件處理
  • 輕量且易於整合

適合對象

  • 尋求快速社交登入設定的開發者
  • 需要一致登入介面的應用
  • 使用 OAuth 認證的專案
  • 以使用者介面為重點的應用開發
  • 極簡主義認證設計

使用建議

  • 限於預定義的按鈕設計
  • 無內建的 OAuth 邏輯(需外部驗證)
  • 平台特定的樣式可能會有所不同
  • 不包含帳戶建立流程
  • 需要額外的套件才能完成完整的驗證流程

原始 README

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

A Flutter plugin for iOS and Android for generating signin buttons for different social media account.

Feedback and Pull Requests are most welcome!

Installation

Add to pubspec.yaml.

dependencies:
  ...
  flutter_signin_button: ^2.1.1

Usage Example

import flutter_signin_button.dart

import 'package:flutter_signin_button/flutter_signin_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 {
  Apple,
  AppleDark,
  Email,
  Google,
  GoogleDark,
  Facebook,
  FacebookNew,
  GitHub,
  LinkedIn,
  Pinterest,
  Tumblr,
  Twitter
}

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

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案