tlserver / flutter_map_location_marker

A flutter map plugin for displaying device current location.
https://pub.dev/packages/flutter_map_location_marker
BSD 3-Clause "New" or "Revised" License
97 stars 81 forks source link

Web: MissingPluginException(No implementation found for method listen on channel hemanthraj/flutter_compass) #27

Closed stx closed 2 years ago

stx commented 2 years ago

Using LocationMarkerLayerWidget() on Flutter web throws this error:

════════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel hemanthraj[/flutter_compass]():
MissingPluginException(No implementation found for method listen on channel hemanthraj[/flutter_compass]())

When the exception was thrown, this was the stack
dart-sdk[/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart]() 251:49  throw_
packages[/flutter/src/services/platform_channel.dart]() 175:7                     _invokeMethod
dart-sdk[/lib/_internal/js_dev_runtime/patch/async_patch.dart]() 45:50            <fn>
dart-sdk[/lib/async/zone.dart]() 1685:54                                          runUnary
dart-sdk[/lib/async/future_impl.dart]() 159:18                                    handleValue
dart-sdk[/lib/async/future_impl.dart]() 766:44                                    handleValueCallback
dart-sdk[/lib/async/future_impl.dart]() 795:13                                    _propagateToListeners
dart-sdk[/lib/async/future_impl.dart]() 601:5                                     [_completeWithValue]
dart-sdk[/lib/async/future_impl.dart]() 639:7                                     callback
dart-sdk[/lib/async/schedule_microtask.dart]() 40:11                              _microtaskLoop
dart-sdk[/lib/async/schedule_microtask.dart]() 49:5                               _startMicrotaskLoop
dart-sdk[/lib/_internal/js_dev_runtime/patch/async_patch.dart]() 166:15           <fn>
════════════════════════════════════════════════════════════════════════════════

Fixed with LocationMarkerLayerOptions(showHeadingSector: !kIsWeb)

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 2 years ago

This issue was closed because it has been stalled for 7 days with no activity.