Skip to content

cedricziel/flutter_faro

Repository files navigation

flutter_faro

Packages faro_dart in a way that it can be consumed nicely in a flutter app.

Example

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter_faro/flutter_faro.dart';

Future<void> main() async {
  await FlutterFaro.init(
        (options) {
          // change this to your collector URL
          options.collectorUrl = Uri.parse("https://example.com/collector");
        },
    // Init your App.
    appRunner: () => runApp(MyApp()),
  );
}

Optional instrumentation

User Interactions

In order to observe interactions with widgets that have a key, wrap bottom most widget in the FaroUserInteraction widget.

Example

import 'package:flutter_faro/flutter_faro.dart';

Future<void> main() async {
  await FlutterFaro.init(
    (options) {
      // change this to your collector URL
      options.collectorUrl = Uri.parse("https://your-collector.com/collect");
    },
    // Init your App and wrap it in the `FaroUserInteraction` widget
    appRunner: () => runApp(FaroUserInteractionWidget(child: const MyApp())),
  );
}

About

Flutter Plugin for Faro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published