firebase_dart_ui 0.1.1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 86

firebase_dart_ui #

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

Usage #

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.

Important #

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

<script src="https://www.gstatic.com/firebasejs/x.y.z/firebase.js"></script>
<script src="https://www.gstatic.com/firebasejs/x.y.z/firebase-auth.js"></script>

<script src="https://cdn.firebase.com/libs/firebaseui/x.y.z/firebaseui.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.firebase.com/libs/firebaseui/x.y.z/firebaseui.css" />

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)

Changelog #

0.0.1 #

  • Initial version, created by Stagehand

0.0.3 #

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

0.1.0 #

  • Dart 2 support

Use this package as a library

1. Depend on it

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


dependencies:
  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
Popularity:
Describes how popular the package is relative to other packages. [more]
74
Health:
Code health derived from static analysis. [more]
98
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
86
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.13+1

Platforms

Detected platforms: web

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

Health issues and suggestions

Document public APIs. (-0.09 points)

62 out of 64 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/auth_ui_js.dart. (-1.99 points)

Analysis of lib/src/auth_ui_js.dart reported 4 hints:

line 84 col 54: Use = to separate a named parameter from its default value.

line 92 col 50: Use = to separate a named parameter from its default value.

line 100 col 61: Use = to separate a named parameter from its default value.

line 111 col 22: Use = to separate a named parameter from its default value.

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 the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and firebase_dart_ui.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
angular ^5.0.0 5.2.0
firebase ^5.0.2 5.0.2
js ^0.6.1+1 0.6.1+1
Transitive dependencies
analyzer 0.34.3 0.35.1
angular_ast 0.5.8
angular_compiler 0.4.2
args 1.5.1
async 2.0.8
build 1.1.0 1.1.1
build_config 0.3.1+4
built_collection 4.1.0
built_value 6.3.0
charcode 1.1.2
code_builder 3.2.0
collection 1.14.11
convert 2.1.1
crypto 2.0.6
csslib 0.14.6
dart_style 1.2.3
fixnum 0.10.9
front_end 0.1.9+1 0.1.11
glob 1.1.7
html 0.13.3+3
http 0.11.3+17 0.12.0+1
http_parser 3.1.3
intl 0.15.7
json_annotation 2.0.0
kernel 0.3.9+1 0.3.11
logging 0.11.3+2
matcher 0.12.4
meta 1.1.7
package_config 1.0.5
path 1.6.2
plugin 0.2.0+3
pub_semver 1.4.2
pubspec_parse 0.1.4
quiver 2.0.1
source_gen 0.9.4+1
source_span 1.5.4
stack_trace 1.9.3
string_scanner 1.0.4
term_glyph 1.1.0
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