0 purchases
social auth btn kit
Social Auth Buttons Kit #
Flutter UI Components for adding social sign in buttons in your project following the brand guidlines of each social provider.
Social Sign in is a part of almost every app and this makes it easier to add buttons quickly.
Supported Provider #
Facebook
Google
Apple
Getting started #
To get stated add this as a dependency in your project.
flutter pub add social_auth_btn_kit
copied to clipboard
Usage #
Facebook #
Facebook brand guides allow for a normal and outlined button
can be passed as the variant parameter FacebookTypeVariants
enum FacebookTypeVariants {
normal,
outlined,
}
copied to clipboard
Also the theme variant can be configured using the theme parameter
enum FacebookThemeVariants {
light,
dark,
}
copied to clipboard
Google #
Google brand guides have three themed buttons can be passed as the theme parameter GoogleThemeVariants
enum GoogleThemeVariants {
light,
dark,
neutral,
}
copied to clipboard
Apple #
Apple button support is also added with outline and dark support according to brand
SocialAuthBtn.facebook(
variant: FacebookTypeVariants.outlined,
onPressed: () {
debugPrint("DEBUG: Facebook Btn Pressed");
},
),
copied to clipboard
Custom buttons #
You can create your own buttons using these quick styles, just add the icon in your assets folder and call the main constructor with custom values
SocialAuthBtn(
onPressed: () {
debugPrint("DEBUG: Instagram Btn Pressed");
},
icon: 'assets/instagram.png',
text: 'Connect Instagram',
borderSide: const BorderSide(),
),
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.