flutter_auth_firebase 0.3.0

  • README.md
  • Installing
  • Versions
  • 63


This package is a wrapper to FlutterFire package so that it can be used with the Authentication Starter project



As a prerequisite to using firebase authentication you need to follow the instruction provided by the FlutterFire package.

At a minumum the dependencies required are:


Example code of using the package

The Google provider is from https://github.com/aqwert/flutter_auth_firebase_google


import 'package:flutter_auth_base/flutter_auth_base.dart';
import 'package:flutter_auth_firebase/flutter_auth_firebase.dart';
AuthService createFirebaseAuthService() {
  var authService = new FirebaseAuthService();
    new FirebaseEmailProvider(service: authService),
    new FirebaseGoogleProvider(service: authService)
    new FirebaseEmailProvider(service: authService),
    new FirebaseGoogleProvider(service: authService)

  return authService;


These are the authentication providers that are supported by the application and need to be set within the Firebase console. The ones supported by this package are:

  • Email with Password
  • Google Signin


These represent the authenticaton providers that allow linking or connecting multiple accounts together which is supported by Firebase

.preAuthPhotoProvider, .postAuthPhotoProvider

Additionally the authService.preAuthPhotoProvider and/or authService.postAuthPhotoProvider can be configured to return a profile picture. See the flutter_auth_starter project for details.


  • [x] Google provider
  • [ ] Twitter provider
  • [ ] Facebook provider
  • [ ] Anonymous Signin
  • [ ] Passwordless signin
  • [ ] Verification by phone

Issues and Feedback

Since this is based on the FlutterFire package there are some things not yet implemented in order for this package to be supported.

Please create an issue to provide feedback or an issue.

[0.3.0] - 29 August 2018

  • Dart 2.1 Compatible

[0.2.2] - 02 August 2018

  • Changed the listener to onAuthStateChanged.

[0.2.1] - 20 July 2018

  • Force refesh of firebase token

[0.2.0] - 10 July 2018

  • Removed Google signin as a dependency. This is now a separate project

[0.1.0] - 29 May 2018

  • Firebase authentication with Email and Google signin

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  flutter_auth_firebase: ^0.3.0

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:flutter_auth_firebase/flutter_auth_firebase.dart';
Version Uploaded Documentation Archive
0.3.0 Aug 29, 2018 Go to the documentation of flutter_auth_firebase 0.3.0 Download flutter_auth_firebase 0.3.0 archive
0.2.2 Aug 1, 2018 Go to the documentation of flutter_auth_firebase 0.2.2 Download flutter_auth_firebase 0.2.2 archive
0.2.1 Jul 20, 2018 Go to the documentation of flutter_auth_firebase 0.2.1 Download flutter_auth_firebase 0.2.1 archive
0.2.0 Jul 10, 2018 Go to the documentation of flutter_auth_firebase 0.2.0 Download flutter_auth_firebase 0.2.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jan 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.10
  • Flutter: 1.1.7


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health issues and suggestions

Document public APIs. (-1 points)

54 out of 54 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use flutter_auth_firebase.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.23.0 <3.0.0
firebase_auth ^0.5.10 0.5.20 0.6.6
flutter 0.0.0
flutter_auth_base ^0.3.1 0.3.1
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies