flutter_shaders icon indicating copy to clipboard operation
flutter_shaders copied to clipboard

Pixelation Shader not working with Backdrop filter.

Open immi420 opened this issue 2 years ago • 2 comments

I want this type of effect in Flutter and it seems the Pixelation shader will work. but using it with BackdropFilter Nothing Happens. Do you have any guide to use it with BackdropFilter?

Reference Image: Instagram Profile View

F1vPIa6aAAA26wb

immi420 avatar Aug 03 '23 18:08 immi420

Its currently not possible with the APIs exposed in the flutter framework. We'd need the ability to generate an ImageFilter from a user authored fragment program.

That would actually more or less eliminate the need for this package :)

I've been thinking about this for a while, I'll file a bug with my thoughts on flutter/flutter and link that here.

jonahwilliams avatar Aug 07 '23 19:08 jonahwilliams

Thanks, i hope it'll come up in the next Updates.

immi420 avatar Aug 08 '23 23:08 immi420

Support for this was added to the engine, but you need to use the new ImageFilter.shader and not this package.

jonahwilliams avatar Nov 20 '24 19:11 jonahwilliams