패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.7

social_login_buttons

사용자가 소셜 미디어 로그인 버튼을 쉽게 만들 수 있도록 해주는 새로운 Flutter 패키지입니다.

AndroidiOSLinuxmacOSWebWindows
30일 다운로드
1.2천
좋아요
56
Pub 점수
150

패키지 설치

flutter pub add social_login_buttons

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

플러터 패키지로, 구글, 페이스북, 애플과 같은 인기 있는 소셜 로그인을 앱에 빠르게 통합할 수 있도록 소셜 미디어 로그인 버튼 생성을 간소화합니다. 플랫폼 간 일관된 스타일을 갖춘 사전 설계된 사용자 정의 가능한 버튼을 제공합니다. 안드로이드, iOS, 웹 및 데스크톱 환경 등 다양한 플랫폼을 지원하여 원활한 사용자 경험을 보장합니다. 최소한의 설정으로 익숙하고 시각적으로 매력적인 로그인 옵션을 제공하여 앱의 가입 프로세스를 강화합니다.

사용 사례

  • 소셜 로그인 빠른 통합
  • 사용자 온보딩 향상
  • 크로스 플랫폼 인증
  • 로그인 UI 디자인 간소화
  • 여러 소셜 공급자 지원
  • 버일러플레이트 코드 감소

주요 기능

  • 사전 구축된 소셜 로그인 버튼
  • 사용자 정의 가능한 버튼 스타일
  • 다중 플랫폼 지원
  • 최소 코드로 간편한 설정
  • 디바이스 간 일관된 사용자 인터페이스
  • 내장 제공자 아이콘

적합한 대상

  • 모바일 앱 개발자
  • 웹 애플리케이션 제작자
  • 데스크탑 앱 통합자
  • 빠른 로그인 구현이 필요한 스타트업
  • UX/UI 효율성에 집중하는 개발자

고려 사항

  • 각 소셜 제공자마다 추가 구성이 필요합니다
  • OAuth 흐름에 대해 사용자 정의 처리가 필요할 수 있습니다
  • 사전 정의된 버튼 디자인에 제한됨
  • 외부 제공자 API에 의존합니다
  • 복잡한 인증 워크플로우에 적합하지 않습니다
  • 로그인 중에는 인터넷 연결이 필요합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

pub package pub points

Flutter Social Login Button

Social Login Button is a flutter package to create social media login buttons of all common used SSO.

Usage

Add the dependency in pubsec.yaml file.

  dependencies:
    flutter:
      sdk: flutter
    social_login_buttons: 1.0.7

How to Use

  SocialLoginButton(
    buttonType: SocialLoginButtonType.apple,
    onPressed: () {},
  )          

You can also specify some other arguments which are:

  • imageURL (if you're specifying the image link from your Github repo, don't forget to change blob with raw)
  • imagePath (you can also use local image, Local will be preferred incase cpecifed both)
  • imageWidth
  • text
  • backgroundColor
  • textColor
  • height
  • width
  • borderRadius
  • fontSize
  • mode

Below is the example with all arguments supplied:

   SocialLoginButton(
      backgroundColor: Colors.amber,
      height: 50,
      text: 'SignIn',
      borderRadius: 20,
      fontSize: 25,
      buttonType: SocialLoginButtonType.generalLogin,
      imageWidth: 20,
      imagepath: "assets/file.png",
      imageURL: "URL",
      onPressed: () {},
   ),

Button Types

  • Facebook
  • Google
  • Twitter
  • Apple
  • AppleBlack
  • Microsoft
  • MicrosoftBlack
  • Github
  • General Login

Mode

There are two modes available for the buttons, You can make shorter buttons with single mode.

  • single
  • multi

Example

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Social Login Buttons',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(tittle: 'Flutter Social Login Buttons'),
    );
  }
}

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key, required this.tittle}) : super(key: key);
  final String tittle;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Social Login Button'),
        elevation: 2.0,
      ),
      body: _buildContainer(context),
      backgroundColor: Colors.grey[200],
    );
  }

  Widget _buildContainer(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(16.0),
      child: Center(
        child: SingleChildScrollView(
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.stretch,
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              SocialLoginButton(
                buttonType: SocialLoginButtonType.apple,
                onPressed: () {},
              ),
              const SizedBox(height: 10),
              SocialLoginButton(
                buttonType: SocialLoginButtonType.appleBlack,
                onPressed: () {},
              ),
              const SizedBox(height: 10),
              SocialLoginButton(
                buttonType: SocialLoginButtonType.facebook,
                onPressed: () {},
              ),
              const SizedBox(height: 10),
              SocialLoginButton(
                buttonType: SocialLoginButtonType.github,
                onPressed: () {},
              ),
              const SizedBox(height: 10),
              SocialLoginButton(
                buttonType: SocialLoginButtonType.google,
                onPressed: () {},
              ),
              const SizedBox(height: 10),
              SocialLoginButton(
                buttonType: SocialLoginButtonType.microsoft,
                onPressed: () {},
              ),
              const SizedBox(height: 10),
              SocialLoginButton(
                buttonType: SocialLoginButtonType.microsoftBlack,
                onPressed: () {},
                imageWidth: 20,
              ),
              const SizedBox(height: 10),
              SocialLoginButton(
                backgroundColor: Colors.amber,
                height: 50,
                text: 'SignIn',
                borderRadius: 20,
                fontSize: 25,
                buttonType: SocialLoginButtonType.generalLogin,
                onPressed: () {},
              ),
              const SizedBox(height: 10),
              Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: [
                  SocialLoginButton(
                    buttonType: SocialLoginButtonType.google,
                    onPressed: () {},
                    mode: SocialLoginButtonMode.single,
                  ),
                ],
              )
            ],
          ),
        ),
      ),
    );
  }
}

Contributing

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

License

Apache-2.0

Screenshot

Image

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.