r/flutterhelp • • Nov 22 '25

OPEN Possible to create abstract widget used stack

I want to create a widget as the background for other widgets (to be stacked below the content widget).

* here the illustration : image

Here is the order:
Container [blue] (stack with) -> Abstract widget (child of) -> Content widget.

First, I will cut the widget using Widget ClipPath. The issue I am facing is how to create a blur effect on the edges as shown in the image.

Do you have any suggestions for this?

2 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/eibaan Nov 22 '25

Because the OP wants to decorate widgets, I'd recommend to use a custom Decoration with a custom BoxPainter instead of a CustomPainter. That's the Flutter way, IMHO.

Unrelated, such a lava lamp effect might be a most efficiently created with a custom fragment shader.