1new Container(
2 height: 200.0,
3 decoration: new BoxDecoration(
4 boxShadow: [
5 BoxShadow(
6 color: Colors.red,
7 blurRadius: 25.0, // soften the shadow
8 spreadRadius: 5.0, //extend the shadow
9 offset: Offset(
10 15.0, // Move to right 10 horizontally
11 15.0, // Move to bottom 10 Vertically
12 ),
13 )
14 ],
15 );
16 child: new Text("Hello world"),
17);
1Container(
2 decoration: BoxDecoration(
3 boxShadow: [
4 BoxShadow(
5 color: Colors.grey.withOpacity(0.4),
6 spreadRadius: 2,
7 blurRadius: 8,
8 ),
9 ],
10 ),
11 ),
1new Container(
2 height: 200.0,
3 decoration: new BoxDecoration(
4 boxShadow: [
5 color: Colors.white, //background color of box
6 BoxShadow(
7 color: Colors.red,
8 blurRadius: 25.0, // soften the shadow
9 spreadRadius: 5.0, //extend the shadow
10 offset: Offset(
11 15.0, // Move to right 10 horizontally
12 15.0, // Move to bottom 10 Vertically
13 ),
14 )
15 ],
16 ),
17 child: new Text("Hello world"),
18);
1return Container(
2 margin: EdgeInsets.only(left: 30, top: 100, right: 30, bottom: 50),
3 height: double.infinity,
4 width: double.infinity,
5 decoration: BoxDecoration(
6 color: Colors.white,
7 borderRadius: BorderRadius.only(
8 topLeft: Radius.circular(10),
9 topRight: Radius.circular(10),
10 bottomLeft: Radius.circular(10),
11 bottomRight: Radius.circular(10)
12 ),
13 boxShadow: [
14 BoxShadow(
15 color: Colors.grey.withOpacity(0.5),
16 spreadRadius: 5,
17 blurRadius: 7,
18 offset: Offset(0, 3), // changes position of shadow
19 ),
20 ],
21 ),
1 boxShadow: [
2 BoxShadow(
3 color: Colors.redAccent,
4 offset: Offset(0.0, 1.0), //(x,y)
5 blurRadius: 3.0,
6 ),
7 ],
1 Card(
2 elevation: 8,
3 child: Container(width: 100, height: 100, color: Colors.blue),
4 ),
5