Here is an example of how to create a container with BoxShadow in flutter.
Container(
decoration: BoxDecoration(
boxShadow: [BoxShadow(color: Colors.grey, offset: Offset(5, 5), blurRadius: 1.0, spreadRadius: 1.0)],
color: Colors.white),
child: Padding(
padding: const EdgeInsets.all(38.0),
),
)
Here is another way to add shadow.
PhysicalModel(
color: Colors.green,
elevation: 20.0,
child: Container(
height: 150,
width: 150,
color: Colors.red,
),
),
Hope this helps.
Thanks,
Srikanth