flutter shadow animation code example
Example 1: flutter set shadow
new Container(
height: 200.0,
decoration: new BoxDecoration(
boxShadow: [
color: Colors.white, //background color of box
BoxShadow(
color: Colors.red,
blurRadius: 25.0, // soften the shadow
spreadRadius: 5.0, //extend the shadow
offset: Offset(
15.0, // Move to right 10 horizontally
15.0, // Move to bottom 10 Vertically
),
)
],
),
child: new Text("Hello world"),
);
Example 2: flutter shadow container
Card(
elevation: 8,
child: Container(width: 100, height: 100, color: Colors.blue),
),