Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyWeb applications specifically
Description
With the upcoming implementation of the ImageFiltered widget on iOS and Android, the web support for this widget is stubbed out similarly to the ColorFiltered widget. As a result, developers will see the following error if they try to use an ImageFiltered widget in their application:
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/surface/scene_builder.dart 174:5 pushImageFilter
package:flutter/src/rendering/layer.dart 1578:26 addToScene
package:flutter/src/rendering/layer.dart 442:5 [_addToSceneWithRetainedRendering]
package:flutter/src/rendering/layer.dart 1059:14 addChildrenToScene
package:flutter/src/rendering/layer.dart 1197:5 addToScene
package:flutter/src/rendering/layer.dart 442:5 [_addToSceneWithRetainedRendering]
package:flutter/src/rendering/layer.dart 1059:14 addChildrenToScene
package:flutter/src/rendering/layer.dart 2038:5 addToScene
package:flutter/src/rendering/layer.dart 442:5 [_addToSceneWithRetainedRendering]
package:flutter/src/rendering/layer.dart 1059:14 addChildrenToScene
package:flutter/src/rendering/layer.dart 1197:5 addToScene
package:flutter/src/rendering/layer.dart 442:5 [_addToSceneWithRetainedRendering]
package:flutter/src/rendering/layer.dart 1059:14 addChildrenToScene
package:flutter/src/rendering/layer.dart 1197:5 addToScene
package:flutter/src/rendering/layer.dart 442:5 [_addToSceneWithRetainedRendering]
package:flutter/src/rendering/layer.dart 1059:14 addChildrenToScene
package:flutter/src/rendering/layer.dart 1645:5 addToScene
package:flutter/src/rendering/layer.dart 796:5 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 1108:15 [_invokeFrameCallback]
package:flutter/src/scheduler/binding.dart 1047:9 handleDrawFrame
package:flutter/src/scheduler/binding.dart 963:5 [_handleDrawFrame]
package:build_web_compilers/lib/_engine/engine.dart 187:21 <fn>
Reacted by sodapay-chris and Mehmet Akif DERE
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.platform-webWeb applications specificallyWeb applications specifically
Activity
flar commentedon Dec 16, 2019
See flutter-team-archive/engine#14491 for the first part of this widget support in the Engine...
Engine support for ImageFiltered widget (#14491)
Engine support for ImageFiltered widget (flutter-team-archive#14491)
Jemshi101 commentedon Apr 29, 2020
ColorFiltered Widget is also throwing the same error
markusaksli-nc commentedon Aug 27, 2020
Hi @flar
This seems fixed on the the latest master
1.22.0-2.0.pre.93, although the behavior is weird.Code sample
flutter doctor -v
Can this issue be closed?
flar commentedon Aug 27, 2020
I tried my original test case on my Moto G 4 and the web and they both seem to blur now, but the blur radius seems much blurrier on the web version. I'm looking into it for more information.
flar commentedon Aug 27, 2020
Compiling with the CanvasKit back end seems to perform similarly to what I see on my Moto G4 and my iPhone. It is the regular back end that seems off (by 2x?).
flar commentedon Aug 28, 2020
It looks like this was fixed by flutter-team-archive/engine#13768
There is a multiply by 2 in the non-canvaskit implementation in that PR that seems to have persisted to this day complete with a comment that it looks too aggressive in HTML. I'll file a different issue on the HTML difference, but this issue can be considered close.
flar commentedon Aug 28, 2020
PR submitted to fix the blur radius issue on HTML...
flutter-team-archive/engine#20840
markusaksli-nc commentedon Aug 28, 2020
Is MaskFilter.blur completely unaffected by this? FYI #58546 seems to track this but I don't think it actually does. The blur also has a weird strech/clip on desktop, don't see any open issues regarding this. It seems to be caused by #30671 since it changes when resizing.

flar commentedon Aug 28, 2020
That appearance does seem unexpected. Try filing a separate issue as this issue is primarily about the fact that we didn't use to have any implementation at all (the methods just threw a bare Unimplemented exception).
github-actions commentedon Aug 13, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.