https://github.com/sirmammingtonham/hypertrack_views_flutter
trying to create an interface for the hypertrack views sdk in flutter
https://github.com/sirmammingtonham/hypertrack_views_flutter
flutter flutter-plugin hypertrack ridesharing
Last synced: 4 months ago
JSON representation
trying to create an interface for the hypertrack views sdk in flutter
- Host: GitHub
- URL: https://github.com/sirmammingtonham/hypertrack_views_flutter
- Owner: sirmammingtonham
- License: mit
- Created: 2021-01-20T07:05:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-19T07:08:01.000Z (over 5 years ago)
- Last Synced: 2025-11-27T17:11:50.344Z (7 months ago)
- Topics: flutter, flutter-plugin, hypertrack, ridesharing
- Language: Dart
- Homepage: https://pub.dev/packages/hypertrack_views_flutter
- Size: 111 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# hypertrack_views_flutter
trying to create an interface for the hypertrack views sdk in flutter
installs the hypertrack views sdk for [Android](https://github.com/hypertrack/views-android) and [iOS](https://github.com/hypertrack/views-ios), and uses flutter platform channels to communicate between them and the dart api.
first time using kotlin and swift :)
https://pub.dev/packages/hypertrack_views_flutter/install
## Usage
Initialize the plugin with `HypertrackViewsFlutter views = HypertrackViewsFlutter(PUBLISHABLE_KEY);`
Get a single device update with `MovementStatus test = await views.getDeviceUpdate(DEVICE_ID);`
Subscribe to device updates with
```dart
views.subscribeToDeviceUpdates(DEVICE_ID).listen((MovementStatus event) {
do stuff;
});
```