boxShadow method

BoxDecoration boxShadow(
  1. int backgroundColor
)

Implementation

BoxDecoration boxShadow(int backgroundColor) {
  return BoxDecoration(boxShadow: [
    BoxShadow(
      color: Colors.grey.withOpacity(0.1),
      spreadRadius: 5,
      blurRadius: 5,
      offset: const Offset(0, 0), // changes position of shadow
    ),
  ], color: Color(backgroundColor), borderRadius: BorderRadius.circular(20));
}