panorama icon indicating copy to clipboard operation
panorama copied to clipboard

Does this plugin support flutter Web?

Open 39IVd opened this issue 4 years ago • 5 comments

hi i tried to implement this panorama plugin for flutter web. but i found this error : ════════ Exception caught by rendering library ═════════════════════════════════ Unsupported operation: ImageShader not implemented for web platform. The relevant error-causing widget was Panorama I think this doesn't support web :( how can i implement panorama viewer in flutter web? Please answer. Thanks :)

39IVd avatar Oct 05 '20 07:10 39IVd

Try to enable SKIA.

flutter run --release --dart-define=FLUTTER_WEB_USE_SKIA=true -d chrome

Paige Lee [email protected] 于 2020年10月5日周一 下午3:40写道:

hi i tried to implement this panorama plugin for flutter web. but i found this error : ════════ Exception caught by rendering library ═════════════════════════════════ Unsupported operation: ImageShader not implemented for web platform. The relevant error-causing widget was Panorama I think this doesn't support web :( how can i implement panorama viewer in flutter web? Please answer. Thanks :)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zesage/panorama/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWFSFZITLCMPY6ODNPUUGLSJFZ7TANCNFSM4SEKRHSA .

zesage avatar Oct 06 '20 07:10 zesage

Try to enable SKIA. flutter run --release --dart-define=FLUTTER_WEB_USE_SKIA=true -d chrome Paige Lee [email protected] 于 2020年10月5日周一 下午3:40写道: hi i tried to implement this panorama plugin for flutter web. but i found this error : ════════ Exception caught by rendering library ═════════════════════════════════ Unsupported operation: ImageShader not implemented for web platform. The relevant error-causing widget was Panorama I think this doesn't support web :( how can i implement panorama viewer in flutter web? Please answer. Thanks :)

this solution cannot resolve problem

kiaxseventh avatar Oct 07 '20 13:10 kiaxseventh

Do you plan to include the web platform?

rlazom avatar Mar 14 '21 20:03 rlazom

@zesage, the solution you provide above does not solve this issue.

I'm trying to run it on the Web (On Windows it doesn't work either and throws the same error) on Flutter 2.0.4 and it shows the image but I can't move around. The latitude, longitude and tilt variables stay at -0.00, and the console throws this error:

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

When the exception was thrown, this was the stack: 
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49  throw_
packages/flutter/src/services/platform_channel.dart 156:7                                                                  _invokeMethod
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50            <fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1612:54                                          runUnary
C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 152:18                                    handleValue
...
════════════════════════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by services library ══════════════════════════════════════════════════════
MissingPluginException(No implementation found for method listen on channel motion_sensors/screen_orientation)
════════════════════════════════════════════════════════════════════════════════════════════════════
Error: MissingPluginException(No implementation found for method setSensorUpdateInterval on channel motion_sensors/method)
    at Object.throw_ [as throw] (http://localhost:57193/dart_sdk.js:5031:11)
    at MethodChannel._invokeMethod (http://localhost:57193/packages/flutter/src/services/system_channels.dart.lib.js:953:21)
    at _invokeMethod.next (<anonymous>)
    at http://localhost:57193/dart_sdk.js:37209:33
    at _RootZone.runUnary (http://localhost:57193/dart_sdk.js:37080:59)
    at _FutureListener.thenAwait.handleValue (http://localhost:57193/dart_sdk.js:32336:29)
    at handleValueCallback (http://localhost:57193/dart_sdk.js:32863:49)
    at Function._propagateToListeners (http://localhost:57193/dart_sdk.js:32901:17)
    at _Future.new.[_completeWithValue] (http://localhost:57193/dart_sdk.js:32749:23)
    at async._AsyncCallbackEntry.new.callback (http://localhost:57193/dart_sdk.js:32770:35)
    at Object._microtaskLoop (http://localhost:57193/dart_sdk.js:37332:13)
    at _startMicrotaskLoop (http://localhost:57193/dart_sdk.js:37338:13)
    at http://localhost:57193/dart_sdk.js:33109:9

rlazom avatar Apr 12 '21 16:04 rlazom

flutter build web --dart-define=FLUTTER_WEB_USE_SKIA=true --no-sound-null-safety

OR

flutter build web --dart-define=FLUTTER_WEB_USE_SKIA=true

Work for me in web

joaotux avatar May 09 '21 20:05 joaotux