v0.0.5
authentication_buttons
어떤 Flutter 앱에도 쉽게 소셜 미디어 로그인 버튼을 추가하려면 Authentication Buttons Flutter 패키지를 사용하세요.
19좋아요 14530일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
Flutter 인증 버튼 패키지
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.2아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
pub package pub points LinkedIn
Authentication Buttons allows users to build social media authentication buttons for all popular SSO systems.
Add the dependency in pubsec.yaml file.
dependencies:
flutter:
sdk: flutter
authentication_buttons: 0.0.5
AuthenticationButton(
authenticationMethod: AuthenticationMethod.google,
onPressed: () {},
)
Additional parameters that you might supply include:
AuthenticationMethod
ButtonSize
ShowLoader
Below is the example with all arguments supplied:
AuthenticationButton(
authenticationMethod: AuthenticationMethod.apple,
onPressed: () {},
showLoader: true,
),
demo screenshot_1 screenshot_2
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,
),
],
),
],
),
);
}
}
Pull requests are welcome 🙏
For major changes, please open an issue on github