Closed gidrokolbaska closed 3 years ago
For anyone who is interested, I've achieved the desired result with the following widget (but we lose the transparency on drag):
DecoratedPlaceholder _defaultDecoratePlaceholder(
Widget widget, double decorationOpacity) {
final double decorationHeight = 10.0;
final decoratedWidget = Builder(builder: (BuildContext context) {
return Container(
decoration: BoxDecoration(
color: Colors.red,
boxShadow: [
BoxShadow(
color: Colors.grey,
offset: Offset(0.0, 0.0), //(x,y)
blurRadius: 6.0,
spreadRadius: 6.0),
],
),
child: widget,
);
});
return DecoratedPlaceholder(offset: 0, widget: decoratedWidget);
}