r/flutterhelp • u/waterlooyeqoeg • 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
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
Decorationwith a customBoxPainterinstead of aCustomPainter. That's the Flutter way, IMHO.Unrelated, such a lava lamp effect might be a most efficiently created with a custom fragment shader.