Skip to content

Commit

Permalink
[sensors] Update readme documentation (flutter#2452)
Browse files Browse the repository at this point in the history
Update readme to fix typo in example for user accelerometer event
  • Loading branch information
ThomasLilley authored and Michael Klimushyn committed Jan 16, 2020
1 parent ddf17ee commit 64c9c5e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/sensors/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.1+7

* Fixed example userAccelerometerEvent in documentation

## 0.4.1+6

* Migrate from deprecated BinaryMessages to ServicesBinding.instance.defaultBinaryMessenger.
Expand Down
2 changes: 1 addition & 1 deletion packages/sensors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ accelerometerEvents.listen((AccelerometerEvent event) {
});
// [AccelerometerEvent (x: 0.0, y: 9.8, z: 0.0)]
userAccelerometerEvents.listen((AccelerometerEvent event) {
userAccelerometerEvents.listen((UserAccelerometerEvent event) {
print(event);
});
// [UserAccelerometerEvent (x: 0.0, y: 0.0, z: 0.0)]
Expand Down
2 changes: 1 addition & 1 deletion packages/sensors/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: sensors
description: Flutter plugin for accessing the Android and iOS accelerometer and
gyroscope sensors.
homepage: https://github.com/flutter/plugins/tree/master/packages/sensors
version: 0.4.1+6
version: 0.4.1+7

flutter:
plugin:
Expand Down

0 comments on commit 64c9c5e

Please sign in to comment.