defaultStyle static method

BoxStyle defaultStyle(
  1. BuildContext context
)

Generate a minimalist box style theme, appropriate to context's theme.

Implementation

static BoxStyle defaultStyle(BuildContext context) {
  final ThemeData theme = Theme.of(context);

  return BoxStyle(
    backgroundColor: theme.cardColor,
    borderRadius: const BorderRadius.all(Radius.circular(5)),
    boxShadow: [
      BoxShadow(
        spreadRadius: 12.5,
        offset: Offset(0, 5),
        color: theme.shadowColor,
        blurRadius: 12.5,
      )
    ],
  );
}