boxShadow method

Widget boxShadow({
  1. Key? key,
  2. Color color = Colors.black,
  3. Offset offset = Offset.zero,
  4. double blurRadius = 0.0,
  5. double spreadRadius = 0.0,
  6. BlurStyle blurStyle = BlurStyle.normal,
})

阴影

Implementation

Widget boxShadow({
  Key? key,
  Color color = Colors.black,
  Offset offset = Offset.zero,
  double blurRadius = 0.0,
  double spreadRadius = 0.0,
  BlurStyle blurStyle = BlurStyle.normal,
}) {
  List<BoxShadow> boxShadow = [
    BoxShadow(
      color: color,
      offset: offset,
      blurRadius: blurRadius,
      spreadRadius: spreadRadius,
      blurStyle: blurStyle,
    ),
  ];
  return decorated(
    key: key,
    boxShadow: boxShadow,
  );
}