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="https://www.gstatic.com/firebasejs/x.y.z/firebase.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.
With DDC:
cd example
pub run build_runner 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.
cd example
pub run builder_runner build --output build
firebase deploy
Add this to your package's pubspec.yaml file:
dependencies:
firebase_dart_ui: "^0.0.3"
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.
Now in your Dart code, you can use:
import 'package:firebase_dart_ui/firebase_dart_ui.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
0.0.3 | Mar 4, 2018 |
|
|
0.0.2 | Feb 15, 2018 |
|
|
0.0.1 | Jan 7, 2018 |
|
|
We analyzed this package on Apr 9, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
68 | / 100 |
Health:
Code health derived from static analysis.
[more]
|
99 | / 100 |
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
100 | / 100 |
Overall score:
Weighted score of the above.
[more]
|
84 |
Detected platforms: web, other
Primary library:
package:firebase_dart_ui/firebase_dart_ui.dart
with components:js
.
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*
, it usually means that the author is still experimenting with the general direction API.
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 usefirebase_dart_ui.dart
.
Fix analysis and formatting issues.
Analysis or formatting checks reported 1 hint.
Run
dartfmt
to formatlib/src/firebase_auth_ui_component.dart
.
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.0.0-dev.20.0 <2.0.0 | ||
angular | ^5.0.0-alpha+5 | 5.0.0-alpha+9 | |
firebase | ^4.3.1 | 4.4.0 | |
func | ^1.0.0 | 1.0.0 | |
js | ^0.6.0 | 0.6.1 | |
Transitive dependencies | |||
analyzer | 0.31.2-alpha.1 | ||
angular_ast | 0.5.0 | ||
angular_compiler | 0.4.0-alpha+9 | ||
args | 1.4.1 | ||
async | 2.0.6 | ||
browser | 0.10.0+3 | ||
build | 0.12.1 | ||
build_config | 0.2.6+1 | ||
built_collection | 3.1.1 | ||
built_value | 5.4.2 | ||
charcode | 1.1.1 | ||
cli_util | 0.1.2+1 | ||
code_builder | 3.0.3 | ||
collection | 1.14.9 | ||
convert | 2.0.1 | ||
crypto | 2.0.2+1 | ||
csslib | 0.14.1 | ||
dart_style | 1.0.10 | ||
fixnum | 0.10.7 | ||
front_end | 0.1.0-alpha.11 | ||
glob | 1.1.5 | ||
html | 0.13.3 | ||
http | 0.11.3+16 | ||
http_parser | 3.1.1 | ||
intl | 0.15.4 | ||
isolate | 1.1.0 | 2.0.0 | |
kernel | 0.3.0-alpha.11 | ||
logging | 0.11.3+1 | ||
matcher | 0.12.1+4 | ||
meta | 1.1.2 | ||
package_config | 1.0.3 | ||
path | 1.5.1 | ||
plugin | 0.2.0+2 | ||
quiver | 0.28.2 | 0.29.0+1 | |
quiver_hashcode | 1.0.0 | ||
source_gen | 0.8.0 | ||
source_span | 1.4.0 | ||
stack_trace | 1.9.2 | ||
string_scanner | 1.0.2 | ||
tuple | 1.0.1 | ||
typed_data | 1.1.5 | ||
utf | 0.9.0+4 | ||
watcher | 0.9.7+7 | ||
yaml | 2.1.13 | ||
Dev dependencies | |||
build_runner | ^0.7.10 | ||
build_web_compilers | ^0.3.0 | ||
webdriver | ^1.2.1 |