Skip to content

Commit

Permalink
[sensors_plus] Fix analyze issue (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSUYA authored Aug 21, 2024
1 parent e78d137 commit a76b6ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/sensors_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## NEXT

* Update minimum Flutter and Dart version to 3.13 and 3.1.
* Fix analyze issue.

## 1.1.4

Expand Down
4 changes: 4 additions & 0 deletions packages/sensors_plus/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ class _MyHomePageState extends State<MyHomePage> {
_userAccelerometerUpdateTime = now;
},
onError: (e) {
if (!mounted) return;
showDialog(
context: context,
builder: (context) {
Expand Down Expand Up @@ -275,6 +276,7 @@ class _MyHomePageState extends State<MyHomePage> {
_accelerometerUpdateTime = now;
},
onError: (e) {
if (!mounted) return;
showDialog(
context: context,
builder: (context) {
Expand Down Expand Up @@ -304,6 +306,7 @@ class _MyHomePageState extends State<MyHomePage> {
_gyroscopeUpdateTime = now;
},
onError: (e) {
if (!mounted) return;
showDialog(
context: context,
builder: (context) {
Expand Down Expand Up @@ -333,6 +336,7 @@ class _MyHomePageState extends State<MyHomePage> {
_magnetometerUpdateTime = now;
},
onError: (e) {
if (!mounted) return;
showDialog(
context: context,
builder: (context) {
Expand Down

0 comments on commit a76b6ae

Please sign in to comment.