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

flutter_social_button のカバー
パッケージ詳細v1.1.6+1

flutter_social_button

Flutter ソーシャルボタンは、任意の Flutter アプリにソーシャルメディアログインボタンを簡単に作成できる Flutter パッケージです。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
68
いいね数
41
Pub ポイント
140

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

flutter pub add flutter_social_button

パッケージ概要

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

Flutter Social Button は、Flutter アプリケーションにソーシャルメディアログインボタンを統合することを簡素化する軽量パッケージです。Google、Facebook、Apple などの人気プラットフォーム向けに事前にデザインされたカスタマイズ可能なボタンを提供し、ユーザー認証ワークフローを向上させます。Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしており、クロスプラットフォームでの一貫性を確保します。最小限のセットアップで、開発者はアプリに視覚的に魅力的なソーシャルログインオプションを迅速に追加できます。

用途

  • 認証画面にソーシャルログインボタンを追加する
  • 迅速なサインインオプションによるユーザーのオンボーディングの向上
  • 複数のプラットフォーム間で一貫したUIを構築する
  • Google、Facebook、Apple ログインの統合
  • ブランドの整合性を図るためのボタンスタイルのカスタマイズ

主な機能

  • 事前構築されたソーシャルメディアボタンテンプレート
  • クロスプラットフォーム対応(Android、iOS、Web、macOS、Windows、Linux)
  • 色とサイズのカスタマイズが簡単
  • pub.dev を通じたシンプルな統合
  • 主要なソーシャルプロバイダーをサポート

適している対象

  • Flutter開発者が認証フローを構築しています
  • 高速なソーシャルサインインを必要とするアプリ
  • 複数プラットフォーム間で一貫したUIを実現することを目指すプロジェクト
  • 開発スピードを最優先するチーム
  • デザイン重視のアプリケーション

注意事項

  • 各ソーシャルプロバイダーごとに追加の構成が必要です
  • プラットフォーム固有の設定(例:OAuthキー)が必要になる場合があります
  • 拡張されない限り、事前定義されたボタンデザインに制限される
  • 機能の実現に外部のソーシャルAPIに依存しています
  • スタイルを超えるカスタムボタンロジックには適していません

元の README

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

Flutter Social Button

Flutter Social Button

pub package pub points LinkedIn Instagram Facebook Youtube


Features

Flutter Social Button is a Flutter package to easily add social media buttons to your app. Buttons are customizable, and the package supports a wide range of social platforms.


Getting Started

Add the following dependency to your pubspec.yaml file:

dependencies:
  flutter:
    sdk: flutter
  flutter_social_button: ^latest_version

Usage Example

import flutter_social_button.dart


import 'package:flutter_social_button/flutter_social_button.dart';

For built-in buttons.


// for full width Buttons

            //For default Button Its return a Email Button
               FlutterSocialButton(
                   onTap: () {}, ), 
                   
            //For facebook Button   
            
             FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.facebook, // Button type for different type buttons
              ),
              
          //For google Button
          
               FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.google, // Button type for different type buttons
                iconColor: Colors.black,  // for change icons colors
              ),  

           // for Mini Circle Button

                 FlutterSocialButton(
                    onTap: () {},
                    mini: true,   //just pass true for mini circle buttons
                    buttonType: ButtonType.phone,  // Button type for different type buttons
                  ),

Button Types

  • Facebook
  • Google
  • Yahoo
  • Twitter
  • LinkedIn
  • WhatsApp
  • Apple
  • GitHub
  • Phone
  • Email
  • Instagram
  • YouTube
  • Snapchat
  • Pinterest
  • TikTok
  • Reddit
  • Tumblr
  • Skype
  • Viber
  • Discord
  • WeChat
  • Line
  • Quora
  • Twitch
  • Flickr
  • Yelp
  • Spotify

Example

import 'package:flutter/material.dart';
import 'package:flutter_social_button/flutter_social_button.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("Social Buttons"),
        centerTitle: true,
      ),
      body: Center(
        child: SingleChildScrollView(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              //For default Button
              FlutterSocialButton(
                onTap: () {},
              ),
              const SizedBox(
                height: 2,
              ),

              //For facebook Button
              FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.facebook,
              ),
              const SizedBox(
                height: 2,
              ),

              //For google Button
              FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.google,
              ),
              const SizedBox(
                height: 2,
              ),

              //For phone Button
              FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.phone,
              ),

              const SizedBox(
                height: 2,
              ),

              //For Whatsapp Button
              FlutterSocialButton(
                onTap: () {},
                buttonType: ButtonType.whatsapp,
              ),
              const SizedBox(
                height: 2,
              ),

              const Divider(
                color: Colors.black,
                thickness: 2.5,
              ),
              Row(
                mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                children: [
                  FlutterSocialButton(
                    onTap: () {},
                    mini: true,
                  ),
                  FlutterSocialButton(
                    onTap: () {},
                    mini: true,
                    buttonType: ButtonType.facebook,
                  ),
                  FlutterSocialButton(
                    onTap: () {},
                    mini: true,
                    buttonType: ButtonType.google,
                  ),
                  FlutterSocialButton(
                    onTap: () {},
                    mini: true,
                    buttonType: ButtonType.phone,
                  ),
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

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