decorShadow function

dynamic decorShadow()

Implementation

decorShadow() {
  return BoxDecoration(
    color: Colors.white,
    boxShadow: [
      BoxShadow(
        color: Colors.grey.withOpacity(0.2),
        spreadRadius: 1,
        blurRadius: 7,
        offset: const Offset(0, 2), // changes position of shadow
      ),
    ],
  );
}