xxxxxxxxxx
Container(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.4),
spreadRadius: 2,
blurRadius: 8,
),
],
),
),
xxxxxxxxxx
Container(
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.8),
spreadRadius: 10,
blurRadius: 5,
offset: Offset(0, 7), // changes position of shadow
),
],
),
child: Image.asset(chocolateImage),
)
xxxxxxxxxx
BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
spreadRadius: 5,
blurRadius: 7,
offset: Offset(0, 3), // changes position of shadow
),
],
)
xxxxxxxxxx
boxShadow: [
BoxShadow(
color: Colors.redAccent,
offset: Offset(0.0, 1.0), //(x,y)
blurRadius: 3.0,
),
],
xxxxxxxxxx
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.grey.withOpacity(0.8),
spreadRadius: 10,
blurRadius: 5,
offset: Offset(0, 7), // changes position of shadow
),
],
),
xxxxxxxxxx
Container(
height: MediaQuery.of(context).size.height / 6.2,
width: MediaQuery.of(context).size.width / 1.1,
decoration: BoxDecoration(
boxShadow: [
BoxShadow(
color: Colors.black.withOpacity(0.1),
spreadRadius: 3,
blurRadius: 8,
offset: Offset(2, 0), // changes position of shadow
)
],
color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(12))),
xxxxxxxxxx
Card(
elevation: 8,
child: Container(width: 100, height: 100, color: Colors.blue),
),