Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cedricziel/flutter_faro

Flutter Plugin for Faro
https://github.com/cedricziel/flutter_faro

Last synced: 11 days ago
JSON representation

Flutter Plugin for Faro

Awesome Lists containing this project

README

        

# flutter_faro

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

## Example

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

import 'package:flutter_faro/flutter_faro.dart';

Future 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
```dart
import 'package:flutter_faro/flutter_faro.dart';

Future 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())),
);
}
```