firebase_bloc_analytics 0.4.1

  • Example
  • Installing
  • Versions
  • 72

firebase_bloc_analytics #

A new Flutter package project.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.0.1] - TODO: Add release date.

  • TODO: Describe initial release.


import 'package:bloc_analytics/bloc_analytics.dart';
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_bloc_analytics/src/firebase_tracker.dart';

class ExampleTracker implements Tracker {
  void logEvent(AnalyticsEvent event) {

  void logPageView(String name) {

  void setUserProperty(String key, Object any) {

void main() {
  final tracker =
      MultipleTracker([FirebaseTracker(FirebaseAnalytics()), ExampleTracker()]);
      AnalyticsEvent(name: 'test', parameters: {'propertyName': 'value'}));


  tracker.setUserProperty('a property', 'value');

Use this package as a library

1. Depend on it

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

  firebase_bloc_analytics: ^0.4.1

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter 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_bloc_analytics/firebase_bloc_analytics.dart';
Version Uploaded Documentation Archive
0.4.1 Feb 8, 2019 Go to the documentation of firebase_bloc_analytics 0.4.1 Download firebase_bloc_analytics 0.4.1 archive
0.4.0 Feb 8, 2019 Go to the documentation of firebase_bloc_analytics 0.4.0 Download firebase_bloc_analytics 0.4.0 archive
0.3.0 Feb 8, 2019 Go to the documentation of firebase_bloc_analytics 0.3.0 Download firebase_bloc_analytics 0.3.0 archive
0.2.0 Feb 8, 2019 Go to the documentation of firebase_bloc_analytics 0.2.0 Download firebase_bloc_analytics 0.2.0 archive
0.1.0 Feb 8, 2019 Go to the documentation of firebase_bloc_analytics 0.1.0 Download firebase_bloc_analytics 0.1.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 Jun 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/src/firebase_tracker.dart.

Run flutter format to format lib/src/firebase_tracker.dart.

Maintenance issues and suggestions

Support latest dependencies. (-15 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (1 direct: firebase_analytics).


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
bloc_analytics ^0.2.0 0.2.0
firebase_analytics ^2.0.1 2.1.1+3 3.0.3
flutter 0.0.0
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
mockito ^4.0.0
test_api ^0.2.1
test_coverage ^0.2.0