flutter_shimmer: Not supported for web.
════════ Exception caught by scheduler library ═════════════════════════════════
UnimplementedError
═════════════════════════════════
I’m getting this error while running this package on flutter web.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 43
- Comments: 33 (5 by maintainers)
(Thanks for the package, I love it on mobile!) Re web support, in the meantime it might be better to remove the “web” tag from this package on pub.dev.
@hnvn Please remove “web” tag. The above issue brought me here. I hope we can use shimmer in Flutter web too. 😃
its been a while, we need official support for web.
https://github.com/flutter/flutter/pull/76536 got merged and can confirm that on
master channelthe package is working on web now! (both HTML and Skia)big thanks for @ferhatb
Important that WEB badge not be included. Does not work for web
════════ Exception caught by scheduler library ═════════════════════════════════ UnimplementedError ════════════════════════════════════════════════════════════════════════════════
The WEB badge is not added by the authors it is added by the pub.dev analyzer seeing that this is a package (not a plugin) and then adding it
I can confirm too that its working with Flutter v2.2.2
That’s a shame, seems like support was added 11 days before Flutter 2.0 was released (https://github.com/flutter/flutter/pull/76536). I doubt it’s eligible for a hotfix considering that it’s still partially broken https://github.com/flutter/flutter/issues/77051 and it’s not a regression or critical fix https://github.com/flutter/flutter/wiki/Flutter-Cherrypick-Process
try to run with
flutter run -d chrome --web-renderer=htmlIt depends heavily on rendering API (i.e. canvas and blend mode). I have tried to work on this issue but have not found a solution yet. It seems we may as well wait for Flutter engine supporting these APIs on Web
ShaderMask was not implemented inside the Flutter framework on the web platform, so that’s why it throws an error. It was recently added but it didn’t land to a stable channel yet. When I tried beta channel last time it still had some issues (but didn’t throw an error). So you need to switch to dev/master channel if you want to use this on the web…
Seems like that it will be soon possible! https://github.com/flutter/engine/pull/24029
Unfortunately even with that flag it doesn’t work.
Another exception was thrown: UnimplementedErrorHopefully flutter/engine#21756 makes it possible
I haven’t ever touched Flutter web version. Welcome anyone who has experiences with it to contribute and bring this package on the web version.