Prayag-X / parallax_sensors_bg

A flutter package to give the background a parallax effect with the input from sensors (Gyroscope and Accelerometer)
MIT License
9 stars 10 forks source link

MissingPluginException(No implementation found for method setUserAccelerometerSamplingPeriod #13

Open offline-first opened 9 months ago

offline-first commented 9 months ago

Hey, I get this error on iOS platform:

MissingPluginException(No implementation found for method setUserAccelerometerSamplingPeriod on channel dev.fluttercommunity.plus/sensors/method)

Flutter Doctor

[✓] Flutter (Channel stable, 3.16.3, on macOS 13.0.1 22A400 darwin-arm64, locale en-CY) • Flutter version 3.16.3 on channel stable at /Users/arian/dev/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision b0366e0a3f (4 days ago), 2023-12-05 19:46:39 -0800 • Engine revision 54a7145303 • Dart version 3.2.3 • DevTools version 2.28.4

TristanGrobler commented 8 months ago

I am getting the same error on Android.

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method setAccelerationSamplingPeriod on channel dev.fluttercommunity.plus/sensors/method)

[✓] Flutter (Channel stable, 3.16.4, on macOS 14.1.2 23B92 darwin-arm64, locale en-ZA) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] Connected device (3 available) [✓] Network resources

offline-first commented 8 months ago

This fix the error for now:

dependency_overrides:
  sensors_plus: ^4.0.2

@Prayag-X please upgrade the plugin