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

패키지 상세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

카테고리

소스 저장소

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

아직 데이터가 없습니다.