Closed
Description
Please check the following before submitting a new issue.
- I have searched the existing issues.
- I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
- Android
- iOS
- Linux
- macOS
- Web
- Windows
Steps to reproduce
1)run the flutter web app which uses geolocator 13.0.2 to listen to the location updates continously using position stream
2)travel for about 30 m while running the app
Expected results
the position should update properly for every 3 m
Actual results
same position is shown for every 3 m
Code sample
Code sample
LocationSettings locationSettings = const LocationSettings(
accuracy: LocationAccuracy.high,
distanceFilter: 3,
);
positionStreamSubscription =
Geolocator.getPositionStream(locationSettings: locationSettings)
.listen(
(Position position) {
Map<String, dynamic> locationPayload = {
"latitude": position.latitude,
"longitude": position.longitude,
};
},
</details>
### Screenshots or video
<details>
<summary>Screenshots or video demonstration</summary>
[Upload media here]
</details>
### Version
13.0.2
### Flutter Doctor output
<details><summary>Doctor output</summary>
```console
```[✓] Flutter (Channel stable, 3.22.0, on Ubuntu 22.04.2 LTS 6.8.0-48-generic, locale en_US.UTF-8)
• Flutter version 3.22.0 on channel stable at /home/divya/snap/flutter/common/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5dcb86f68f (7 months ago), 2024-05-09 07:39:20 -0500
• Engine revision f6344b75dc
• Dart version 3.4.0
• DevTools version 2.34.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /home/divya/Android/Sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /snap/android-studio/161/jbr/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• clang version 10.0.0-4ubuntu1
• cmake version 3.16.3
• ninja version 1.10.0
• pkg-config version 0.29.1
[✓] Android Studio (version 2024.1)
• Android Studio at /snap/android-studio/161
• Flutter plugin version 82.1.2
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
[✓] VS Code (version 1.93.0)
• VS Code at /usr/share/code
• Flutter extension version 3.100.0
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.2 LTS 6.8.0-48-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 120.0.6099.129
[✓] Network resources
• All expected network resources are available.
• No issues found!
</details>
Metadata
Metadata
Assignees
Labels
No labels