Open asaiahdev777 opened 1 year ago
Did you find a solution for this problem. I'm facing the same issue and cannot find any way to change any colors
There is a condition in AnimatedSliverChildBuilderDelegate
that wraps the child like so:
if (addAnimatedElevation != 0.0 && reorderModel != null) {
child = Material(
elevation: data.dragging ? addAnimatedElevation : 0.0,
child: child,
);
}
The issue is that Material
widgets have a default non-transparent color.
You have two solutions:
AnimatedSliverChildBuilderDelegate
if you want, and then add color: Colors.transparent
to the Material
widget.addAnimatedElevation
property to zero (.0), and then handle the elevation effect (shadow, etc.) yourself.
I am using the AutomaticAnimatedListView, and when the reorderModel is set to something other than null, I get this behaviour where the list items have a greyish background. Why is this?