Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnimplementedError Flutter WEB #13

Closed
danieramiz opened this issue Mar 15, 2020 · 6 comments
Closed

UnimplementedError Flutter WEB #13

danieramiz opened this issue Mar 15, 2020 · 6 comments

Comments

@danieramiz
Copy link

I'm trying to run the example project and I'm getting this error:

══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
The following UnimplementedError was thrown during a scheduler callback:
UnimplementedError

When the exception was thrown, this was the stack:
package:dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 196:49  throw_
package:build_web_compilers/lib/_engine/engine/shader.dart 51:5                       createPaintStyle
package:build_web_compilers/lib/_engine/engine/bitmap_canvas.dart 212:23              [_applyPaint]
package:build_web_compilers/lib/_engine/engine/bitmap_canvas.dart 343:5               drawPath
package:build_web_compilers/lib/_engine/engine/surface/recording_canvas.dart 990:11   apply
package:build_web_compilers/lib/_engine/engine/surface/recording_canvas.dart 78:18    apply
package:build_web_compilers/lib/_engine/engine/surface/picture.dart 253:35            paintCallback
package:build_web_compilers/lib/_engine/engine/surface/surface.dart 71:14             commitScene
package:build_web_compilers/lib/_engine/engine/surface/scene_builder.dart 520:5       build
package:flutter/src/rendering/layer.dart 801:35                                       buildScene
package:flutter/src/rendering/view.dart 230:36                                        compositeFrame
package:flutter/src/rendering/binding.dart 405:18                                     drawFrame
package:flutter/src/widgets/binding.dart 797:13                                       drawFrame
package:flutter/src/rendering/binding.dart 283:5                                      [_handlePersistentFrameCallback]
package:flutter/src/scheduler/binding.dart 1109:15                                    [_invokeFrameCallback]
package:flutter/src/scheduler/binding.dart 1048:9                                     handleDrawFrame
package:flutter/src/scheduler/binding.dart 857:7                                      <fn>
package:dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 50:19       internalCallback
════════════════════════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: NoSuchMethodError: invalid member on null: 'doesFitBounds'
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/scene_builder.dart:267:12
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/scene_builder.dart:267:12
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/scene_builder.dart:267:12
Another exception was thrown: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/scene_builder.dart:267:12

my flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.14.6, on Mac OS X 10.15.3 19D76, locale es-419)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.43.0)
[✓] Connected device (2 available)

• No issues found!
@matthewfx
Copy link
Owner

I haven't tried it on the Flutter WEB... Does it work for you on mobile?

@shadowdogg
Copy link

shadowdogg commented Apr 2, 2020

@matthewfx I think the issue is, it has the flag of 'web' in your plugin. This makes everyone think its compatible. I have spent the last 4 hours trying to see what I can do myself. I love the idea of the plugin though, great job if it works on mobile.

@matthewfx
Copy link
Owner

Hi, I am sorry for your trouble. I will remove the flag in a next release - it's probably in every new Flutter project set like it by default and I wasn't aware. It works on mobile and if I have time one day I will try to check what's wrong with the web.

@JErazo7
Copy link

JErazo7 commented Jul 15, 2020

Is web support already enabled?

kkujawinski added a commit to kkujawinski/sleek_circular_slider that referenced this issue Oct 15, 2020
@kkujawinski
Copy link
Contributor

kkujawinski commented Oct 15, 2020

I found the root of the problem. It is SweepGradient. I made a fix in which for web channel LinearGradient is used.

Pull request: #35

One can use mine workaround by adding it to pubspec.yaml:

  sleek_circular_slider:
    git:
      # PR with my fix https://github.com/matthewfx/sleek_circular_slider/pull/35
      url: git://github.com/kkujawinski/sleek_circular_slider

matthewfx added a commit that referenced this issue Oct 20, 2020
@matthewfx
Copy link
Owner

@kkujawinski fixed the issue - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants