firebase_dart 0.7.3

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 75

A pure Dart implementation of the Firebase client

Usage

A simple usage example:

import 'package:firebase_dart/firebase_dart.dart';

main() {
  var ref = new Firebase("https://n6ufdauwqsdfmp.firebaseio-demo.com/");
  
  ref.child("test").onValue.listen((e) {
    print(e.snapshot.val);
  });
}

Local database

Besides connecting to a remote firebase database, you can also create and work with a local in memory database.

var ref = new Firebase("mem://some.name/");


Features and bugs

Please file feature requests and bugs at the issue tracker.

Changelog

0.7.3

  • Fix The method 'operationForChild' was called on null.

0.7.2

  • Fix not able to authenticate with database secret

0.7.1

  • Fix bug saving lists

0.7.0

  • Local memory database
  • bugfixes

0.6.0

  • improved performance by only listening to the most general query
  • bugfixes

0.5.7

  • fix handling merge when some new children are nil

0.5.6

  • fix child of empty datasnapshot

0.5.5

  • implement onChildChanged, onChildMoved, onChildRemoved and onChildAdded

0.5.4

  • fix hash of null in transactions

0.5.3

  • fix signature check when padded

0.5.2

  • fix decoding tokens not padded with =

0.5.1

  • fix redirects to host with port

0.5.0

  • Breaking signature of startAt/endAt
  • reconnect when connection broken
  • bugfixes
  • FirebaseToken class

0.4.1

  • handle messages split in multiple frames (issue #8)

0.4.0

  • browser support
  • strong mode

0.3.0

  • implement transactions
  • implement onDisconnect
  • bug fixes

0.2.1

  • relax dependency on crypto library to '>=0.9.2 <3.0.0'

0.2.0

  • implement auth revoke and listen revoke
  • implement startAt and endAt
  • remove failed operations

0.1.0

  • Initial version

1. Depend on it

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


dependencies:
  firebase_dart: "^0.7.3"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages 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/firebase_dart.dart';
        
Version Uploaded Documentation Archive
0.7.3 Jan 12, 2018 Go to the documentation of firebase_dart 0.7.3 Download firebase_dart 0.7.3 archive
0.7.2 Apr 11, 2017 Go to the documentation of firebase_dart 0.7.2 Download firebase_dart 0.7.2 archive
0.7.1 Apr 10, 2017 Go to the documentation of firebase_dart 0.7.1 Download firebase_dart 0.7.1 archive
0.7.0 Mar 27, 2017 Go to the documentation of firebase_dart 0.7.0 Download firebase_dart 0.7.0 archive
0.6.0 Mar 7, 2017 Go to the documentation of firebase_dart 0.6.0 Download firebase_dart 0.6.0 archive
0.5.7 Jan 24, 2017 Go to the documentation of firebase_dart 0.5.7 Download firebase_dart 0.5.7 archive
0.5.6 Jan 23, 2017 Go to the documentation of firebase_dart 0.5.6 Download firebase_dart 0.5.6 archive
0.5.5 Jan 23, 2017 Go to the documentation of firebase_dart 0.5.5 Download firebase_dart 0.5.5 archive
0.5.4 Jan 5, 2017 Go to the documentation of firebase_dart 0.5.4 Download firebase_dart 0.5.4 archive
0.5.3 Aug 25, 2016 Go to the documentation of firebase_dart 0.5.3 Download firebase_dart 0.5.3 archive

All 20 versions...

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
52 / 100
Health:
Code health derived from static analysis. [more]
98 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
75

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:firebase_dart/firebase_dart.dart.

Suggestions

  • 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.

    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 firebase_dart.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.14.0 <2.0.0
async >=1.8.0 <2.0.0 1.13.3 2.0.3
collection ^1.9.1 1.14.5
crypto >=0.9.2 <3.0.0 2.0.2+1
frappe >=0.4.0 <0.5.0 0.4.0+6
isolate >=1.0.0 <1.1.0 1.0.0 1.1.0
logging >=0.11.0 <0.12.0 0.11.3+1
quiver >=0.22.0 <0.23.0 0.22.0 0.28.0
sortedmap >=0.2.0 <0.3.0 0.2.0
web_socket_channel >=1.0.4 <2.0.0 1.0.6
Transitive dependencies
charcode 1.1.1
convert 2.0.1
matcher 0.12.1+4
path 1.5.1
stack_trace 1.9.1
stream_channel 1.6.3
stream_transformers 0.3.0+3
typed_data 1.1.5
Dev dependencies
test >=0.12.0 <0.13.0