Get started / two steps
Add the package. Attach your events.
The widget owns the button UI. Your app owns what happens after a press: OAuth, loading, errors, tokens, and navigation.
The package includes 35 style presets, not provider logo files. Supply your app's logo assets or use SocialButton.custom with a widget.
01 / pubspec.yaml
Add the pub.dev dependency.
Published on pub.dev. Add social_signin_kit ^0.2.0, then run fvm flutter pub get in your app directory.
For package development only, you can swap in a Git dependency pinned to a verified commit or release tag, or path: /absolute/path/to/social_signin_kit for a local clone.
dependencies:
social_signin_kit: ^0.2.0
02 / event handlers
Pass the events your app already owns.
Each SocialButton receives its own
onPressed. Passing null disables that
button while your app is busy.
A press starts your handler; it does not prove that sign-in succeeded. Keep request state and authentication results in the app.
Register your logo files under flutter/assets in pubspec.yaml. Replace the sample paths below with your app's own files.
import 'package:social_signin_kit/social_signin_kit.dart';
SocialButtonList.vertical(
items: [
SocialButton(
social: Social.google,
logo: 'assets/brand/google.png',
isLoading: isSigningIn,
onPressed: startGoogleSignIn,
),
SocialButton(
social: Social.kakao,
logo: 'assets/brand/kakao.png',
isLoading: isSigningIn,
onPressed: startKakaoSignIn,
),
SocialButton(
social: Social.naver,
logo: 'assets/brand/naver.png',
isLoading: isSigningIn,
onPressed: startNaverSignIn,
),
],
)