firebase_dart_ui 0.1.1

  • Installing
  • Versions
  • 82


A dart wrapper for FirebaseUI, a Javascript library that provides sign on flows. This library provides an Angular Dart wrapper around FirebaseUI.

A demonstration application is hosted online here


The Angular component <firebase-auth-ui> handles Firebase Authentication for your application.

Add this component to your landing page for your SPA application.The component is visible on the page (display is block ) if the user has not been authenticated. The user is presented a dialog with the various social login and email providers that have been configured in your Firebase console. Once the user has authenticated, the components display attribute is set to none making it invisible.


You must add these lines to your index.html <head> section:

<script src=""></script>
<script src=""></script>

<script src=""></script>
<link type="text/css" rel="stylesheet" href="" />

The x.y.z versions above are replaced with the current supported versions. Please see the example/ application.

Running the demo

With DDC:

cd example
webdev serve
# open localhost:8080

To use your our own Firebase project to test, you must edit main.dart and enter in your project credentials. Also edit example/.firebaserc and enter your project name.

To build and deploy the example application

cd example
webdev build
firebase deploy

Known Issues

  • The provider implementations need to be fleshed out (phone provider, for example)



  • Initial version, created by Stagehand


  • Support for siginInSucces callback.
  • Extended sample to demonstrate getting the providers access token


  • Dart 2 support

Use this package as a library

1. Depend on it

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

  firebase_dart_ui: ^0.1.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:firebase_dart_ui/firebase_dart_ui.dart';
Version Uploaded Documentation Archive
0.1.1 Oct 25, 2018 Go to the documentation of firebase_dart_ui 0.1.1 Download firebase_dart_ui 0.1.1 archive
0.1.0 Aug 10, 2018 Go to the documentation of firebase_dart_ui 0.1.0 Download firebase_dart_ui 0.1.0 archive
0.0.3 Mar 4, 2018 Go to the documentation of firebase_dart_ui 0.0.3 Download firebase_dart_ui 0.0.3 archive
0.0.2 Feb 15, 2018 Go to the documentation of firebase_dart_ui 0.0.2 Download firebase_dart_ui 0.0.2 archive
0.0.1 Jan 7, 2018 Go to the documentation of firebase_dart_ui 0.0.1 Download firebase_dart_ui 0.0.1 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 Dec 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7


Detected platforms: web

Primary library: package:firebase_dart_ui/firebase_dart_ui.dart with components: html, js.

Health issues and suggestions

Document public APIs (-9.62 points)

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

Format lib/src/auth_ui_js.dart.

Run dartfmt to format lib/src/auth_ui_js.dart.

Format lib/src/firebase_auth_ui_component.dart.

Run dartfmt to format lib/src/firebase_auth_ui_component.dart.

Maintenance suggestions

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use firebase_dart_ui.dart. Packages with multiple examples should use example/


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
angular ^5.0.0 5.1.0
firebase ^5.0.2 5.0.2
js ^0.6.1+1 0.6.1+1
Transitive dependencies
analyzer 0.33.6 0.34.0
angular_ast 0.5.7
angular_compiler 0.4.1
args 1.5.1
async 2.0.8
build 1.0.1
build_config 0.3.1+4
built_collection 4.1.0
built_value 6.1.6
charcode 1.1.2
code_builder 3.1.3
collection 1.14.11
convert 2.0.2
crypto 2.0.6
csslib 0.14.6
dart_style 1.2.0 1.2.1
fixnum 0.10.9
front_end 0.1.6+8 0.1.7
glob 1.1.7
html 0.13.3+3
http 0.11.3+17 0.12.0
http_parser 3.1.3
intl 0.15.7
json_annotation 2.0.0
kernel 0.3.6+8 0.3.7
logging 0.11.3+2
matcher 0.12.4
meta 1.1.6
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
pub_semver 1.4.2
pubspec_parse 0.1.2+3
quiver 2.0.1
source_gen 0.9.1+3
source_span 1.4.1
stack_trace 1.9.3
string_scanner 1.0.4
typed_data 1.1.6
utf 0.9.0+5
watcher 0.9.7+10
yaml 2.1.15
Dev dependencies
build_runner ^0.10.0
build_web_compilers ^0.4.0