getContainerDecoration static method

BoxDecoration getContainerDecoration(
  1. LocationPickerTheme theme,
  2. BuildContext context
)

Implementation

static BoxDecoration getContainerDecoration(LocationPickerTheme theme, BuildContext context) {
  return BoxDecoration(
    color: theme.dropdownBackgroundColor ?? Theme.of(context).cardColor,
    borderRadius: theme.borderRadius ?? BorderRadius.circular(8),
    boxShadow: theme.shadow != null
      ? [theme.shadow!]
      : theme.elevation != null
        ? [BoxShadow(
            color: Colors.black.withValues(alpha: 0.1),
            blurRadius: theme.elevation!,
            offset: Offset(0, theme.elevation! / 2),
          )]
        : null,
  );
}