Trying to add shadow to CircleAvatar.
please find attached screenshot and also the code.
Tried wrapping it to a Container to try BoxShadow via BoxDecoration.
Have given Radius to add Circularity to the Container but not able to get the Width right.
Please help.
final logo = Hero(
tag: 'hero',
child: Container(
decoration: new BoxDecoration(
borderRadius: BorderRadius.circular(48.0),
boxShadow: [new BoxShadow(
color: Colors.white70,
blurRadius: 20.0
)]
),
child: CircleAvatar(
backgroundColor: Colors.white,
radius: 48.0,
child: Image.asset(
'assets/images/logo.png',
width: 55.0,
height: 55.0,
fit: BoxFit.cover,
),
),
),
);