How to make shadow for Container widget Flutter?

 

By Using boxShadow property of BoxDecoration widget we can make shadow for the Container.
Container(
  margin: EdgeInsets.all(16),
  decoration: BoxDecoration(
    color: Colors.white,
    borderRadius: BorderRadius.circular(8),
    boxShadow: [
      BoxShadow(
        blurRadius: 6,
        spreadRadius: 4,
        color: Color.fromARGB(20, 0, 0, 0),
      ),
    ],
  ),
  child: 
Image.asset("assets/imagename", height: 200,
  fit: BoxFit.fitWidth,)
);


Subscribe For Daily Updates

Flutter Questions
Android Questions