パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.0.5

authentication_buttons

どのFlutterアプリにも簡単にソーシャルメディアログインボタンを追加するには、Authentication Buttons Flutterパッケージを使用してください。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
95
いいね数
19
Pub ポイント
160

パッケージをインストール

flutter pub add authentication_buttons

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

認証ボタンパッケージは、Flutterアプリケーションにソーシャルメディアログインボタンをシンプルで洗練された方法で統合するためのツールです。Google、Facebook、Appleなど人気プラットフォーム向けの事前設計済みでカスタマイズ可能なボタンを提供し、最小限のコードでユーザーのオンボーディング体験を向上させます。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームをサポートしており、デバイス間で一貫したUIを実現します。使いやすいウィジェットと組み込みのスタイルオプションにより、開発者はゼロからデザインせずに迅速に認証UIを実装できます。高速で視覚的に魅力的なサインイン体験が必要なアプリに最適です。

用途

  • モバイルアプリにソーシャルログインボタンを追加する
  • Google/Facebook/Apple ログインの統合
  • ユーザーのオンボーディングフローの向上
  • クロスプラットフォーム認証UIの構築
  • モダンなログイン画面の作成

主な機能

  • 事前構築されたソーシャルログインボタン
  • クロスプラットフォーム対応
  • カスタマイズ可能なボタンスタイル
  • Flutterとの簡単な統合
  • すべてのデバイス向けのレスポンシブデザイン

適している対象

  • Flutter開発者がログイン画面を構築しています
  • ソーシャル認証が必要なアプリ
  • 迅速なUI実装を優先するプロジェクト
  • 一貫した認証UIを求めるチーム
  • 複数のプラットフォームをターゲットにする開発者

注意事項

  • OAuthワークフローの追加設定が必要です
  • プラットフォーム固有の動作に対応するためのカスタム処理が必要になる場合があります
  • UIコンポーネントに限定される—認証ロジックを管理しない
  • 実際の認証には外部プロバイダーに依存しています
  • 非ソーシャルログイン方法には適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

pub package pub points LinkedIn

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

How to Use

  AuthenticationButton(
    authenticationMethod: AuthenticationMethod.google,
    onPressed: () {},
  )

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,
  ),

Screenshots

demo screenshot_1 screenshot_2

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,
              ),
            ],
          ),
        ],
      ),
    );
  }
}

Contributing

Pull requests are welcome 🙏

For major changes, please open an issue on github

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。