Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/cedricziel/flutter_faro
- Owner: cedricziel
- License: apache-2.0
- Created: 2023-07-04T19:13:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-26T10:04:07.000Z (6 months ago)
- Last Synced: 2024-10-11T20:14:02.358Z (25 days ago)
- Language: Dart
- Size: 307 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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())),
);
}
```