{"id":13551993,"url":"https://github.com/koji-1009/flutter_auth_ui","last_synced_at":"2025-05-12T14:29:56.573Z","repository":{"id":36948489,"uuid":"231282109","full_name":"koji-1009/flutter_auth_ui","owner":"koji-1009","description":"A Flutter plugin for using the Firebase Auth UI with Dart in Flutter apps. (not official plugin.)","archived":false,"fork":false,"pushed_at":"2024-11-16T13:08:00.000Z","size":437,"stargazers_count":35,"open_issues_count":1,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-12T14:29:44.624Z","etag":null,"topics":["dart2","firebaseui","firebaseui-android","firebaseui-ios","firebaseui-web","flutter","mit-license"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/flutter_auth_ui","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koji-1009.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-02T00:50:54.000Z","updated_at":"2024-12-28T13:44:18.000Z","dependencies_parsed_at":"2024-12-16T14:37:31.059Z","dependency_job_id":"2c4d5f73-07bc-4ade-98ee-62cb1e57ee96","html_url":"https://github.com/koji-1009/flutter_auth_ui","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2Fflutter_auth_ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2Fflutter_auth_ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2Fflutter_auth_ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koji-1009%2Fflutter_auth_ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koji-1009","download_url":"https://codeload.github.com/koji-1009/flutter_auth_ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253754886,"owners_count":21958921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart2","firebaseui","firebaseui-android","firebaseui-ios","firebaseui-web","flutter","mit-license"],"created_at":"2024-08-01T12:01:57.143Z","updated_at":"2025-05-12T14:29:56.544Z","avatar_url":"https://github.com/koji-1009.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# flutter_auth_ui\n\nUnofficial firebaseui package for flutter. This library aims to provide support for Android, iOS and the web. Login with Email, Phone, Google account and etc.\n\n## Getting Started\n\nThis plugin is wrapped Android/iOS/Web native plugin.\n\nCheck documents and setup your firebase project.\n\n* iOS : \u003chttps://firebase.google.com/docs/auth/ios/firebaseui\u003e\n* Android : \u003chttps://firebase.google.com/docs/auth/android/firebaseui\u003e\n* Web: \u003chttps://firebase.google.com/docs/auth/web/firebaseui\u003e\n\n## How to use\n\n```dart\n// Set provider\nfinal providers = [\n  AuthUiProvider.anonymous,\n  AuthUiProvider.email,\n  AuthUiProvider.phone,\n  AuthUiProvider.apple,\n  AuthUiProvider.facebook,\n  AuthUiProvider.github,\n  AuthUiProvider.google,\n  AuthUiProvider.microsoft,\n  AuthUiProvider.yahoo,\n  AuthUiProvider.twitter,\n];\n\nfinal result = await FlutterAuthUi.startUi(\n  items: providers,\n  tosAndPrivacyPolicy: const TosAndPrivacyPolicy(\n    tosUrl: \"https://www.google.com\",\n    privacyPolicyUrl: \"https://www.google.com\",\n  ),\n  androidOption: const AndroidOption(\n    enableSmartLock: false, // default true\n    showLogo: true, // default false\n    overrideTheme: true, // default false\n  ),\n  emailAuthOption: const EmailAuthOption(\n    requireDisplayName: true, // default true\n    enableMailLink: false, // default false\n    handleURL: '',\n    androidPackageName: '',\n    androidMinimumVersion: '',\n  ),\n);\n```\n\n## Requirements\n\n- flutter 3.13.0 or higher\n- [firebase_auth](https://pub.dev/packages/firebase_auth) 5.0.0 or higher\n\n### Android\n\n- minSdkVersion 21\n- compileSdkVersion 34\n\n### iOS\n\n- iOS 13 or higher\n\n## Link\n\n* [Introduction of flutter_auth_ui.](https://koji-1009.medium.com/introduction-of-flutter-auth-ui-ad5895646f3c)\n\n## Tips\n\n### EmailLink\n\nNote: In order to implement EmailLink, you will need to prepare in advance; check the [firebase documentation](https://firebase.google.com/docs/auth) first.\n\n* [Android](https://firebase.google.com/docs/auth/android/email-link-auth)\n* [iOS](https://firebase.google.com/docs/auth/ios/email-link-auth)\n* [Web](https://firebase.google.com/docs/auth/web/email-link-auth)\n\nLet's check the code sample for firebase auth.\n\n* [Android](https://github.com/firebase/snippets-android/blob/8184cba2c40842a180f91dcfb4a216e721cc6ae6/auth/app/src/main/java/com/google/firebase/quickstart/auth/MainActivity.java#L340)\n* [iOS](https://github.com/firebase/quickstart-ios/blob/70e424c8b3740597d17ad7f25c5f98918a567bc0/authentication/LegacyAuthQuickstart/AuthenticationExampleSwift/PasswordlessViewController.swift#L66)\n\n#### Android\n\nTo handle dynamic link, add `FlutterAuthUiPlugin.catchEmailLink` to `onCreate` and `onNewIntent`.\n(If you don't use EmailLink, then you don't need to add it.)\n\n```java\nimport android.content.Intent;\nimport android.os.Bundle;\n\nimport androidx.annotation.NonNull;\nimport androidx.annotation.Nullable;\n\nimport com.dr1009.app.flutter_auth_ui.FlutterAuthUiPlugin;\n\nimport io.flutter.embedding.android.FlutterActivity;\n\npublic class MainActivity extends FlutterActivity {\n    @Override\n    protected void onCreate(@Nullable Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n\n        // check intent\n        FlutterAuthUiPlugin.catchEmailLink(this, getIntent());\n    }\n\n    @Override\n    protected void onNewIntent(@NonNull Intent intent) {\n        super.onNewIntent(intent);\n\n        // check intent\n        FlutterAuthUiPlugin.catchEmailLink(this, intent);\n    }\n}\n```\n\n### Localizing\n\n#### Android\n\nSupported without any special settings.\n\n#### iOS\n\nCheck [Localizing for iOS: Updating the iOS app bundle](https://flutter.dev/docs/development/accessibility-and-localization/internationalization#localizing-for-ios-updating-the-ios-app-bundle).\n\n#### Web\n\nCheck [Installation - Option 1: CDN - Localized Widget](https://github.com/firebase/firebaseui-web#localized-widget).\n\n### To change the title of AppBar on Android\n\nAdd the string value as `app_name` or `fui_default_toolbar_title` to your app's `strings.xml` file.\nSample code is [strings.xml](https://github.com/koji-1009/flutter_auth_ui/blob/main/flutter_auth_ui/example/android/app/src/main/res/values/strings.xml).\n\nBehavior depends on [FirebaseUI-Android](https://github.com/firebase/FirebaseUI-Android/blob/master/auth/src/main/AndroidManifest.xml).\n\n### Show Logo (Android)\n\n1. Add your logo resource file to `android/app/src/main/res/drawable/flutter_auth_ui_logo.xml` or `android/app/src/main/res/drawable-{m~xxxhdpi}/flutter_auth_ui_logo.png`\n2. Enable `AndroidOption.showLogo`\n\n### Change Appbar and link color (Android)\n\n1. Add `flutter_auth_ui_style` style to your `android/app/src/main/res/values/style.xml`\n  - [example](https://github.com/koji-1009/flutter_auth_ui/blob/main/flutter_auth_ui/example/android/app/src/main/res/values/styles.xml)\n2. Enable `AndroidOption.overrideTheme`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoji-1009%2Fflutter_auth_ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoji-1009%2Fflutter_auth_ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoji-1009%2Fflutter_auth_ui/lists"}