flutter_auth_ui 1.1.1
flutter_auth_ui: ^1.1.1 copied to clipboard
A Flutter plugin for using the Firebase Auth UI with Dart in Flutter apps.
flutter_auth_ui #
A Flutter plugin for using the Firebase Auth UI with Dart in Flutter apps. (not official plugin.)
Getting Started #
This plugin is wrapped Android/iOS's native plugin.
Check documents and setup your firebase project.
- iOS : https://firebase.google.com/docs/auth/ios/firebaseui
- Android : https://firebase.google.com/docs/auth/android/firebaseui
How to use #
// Set provider
final providers = [
AuthUiItem.AuthEmail,
AuthUiItem.AuthPhone,
AuthUiItem.AuthApple,
AuthUiItem.AuthFacebook,
AuthUiItem.AuthGithub,
AuthUiItem.AuthGoogle,
AuthUiItem.AuthMicrosoft,
AuthUiItem.AuthYahoo,
AuthUiItem.AuthTwitter,
];
final result = await FlutterAuthUi.startUi(
items: providers,
tosAndPrivacyPolicy: TosAndPrivacyPolicy(
tosUrl: "https://www.google.com",
privacyPolicyUrl: "https://www.google.com",
),
androidOption: AndroidOption(
enableSmartLock: false, // default true
enableMailLink: false, // default false
requireName: true, // default true
),
iosOption: IosOption(
enableMailLink: false, // default false
requireName: true, // default true
),
// If you need EmailLink mode, please set EmailAuthOption
emailAuthOption: EmailAuthOption(
handleURL: '',
androidPackageName: '',
androidMinimumVersion: '',
),
);