flutter_auth_ui 1.2.2 copy "flutter_auth_ui: ^1.2.2" to clipboard
flutter_auth_ui: ^1.2.2 copied to clipboard

outdated

Unofficial firebaseui package for flutter. This library is personally managed and aims to provide support for Android, iOS and the web. Login with Email, Phone, Apple, Google, GitHub account and etc.

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.

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: '',
  ),
);

Requirements #

Android #

  • minSdkVersion 21
  • compileSdkVersion 30

iOS #

  • iOS 12 or higher

Tips #

To change the title of AppBar on Android #

Add the string value as app_name or fui_default_toolbar_title to your app's strings.xml file. Sample code is here.

Behavior depends on this.

65
likes
0
pub points
73%
popularity

Publisher

unverified uploader

Unofficial firebaseui package for flutter. This library is personally managed and aims to provide support for Android, iOS and the web. Login with Email, Phone, Apple, Google, GitHub account and etc.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

firebase_auth, flutter, flutter_plugin_android_lifecycle

More

Packages that depend on flutter_auth_ui