resolveShadows method

List<BoxShadow> resolveShadows(
  1. Brightness brightness
)

Implementation

List<BoxShadow> resolveShadows(Brightness brightness) =>
    panelShadows ??
    [
      BoxShadow(
        color: Colors.black
            .withValues(alpha: brightness == Brightness.dark ? 0.34 : 0.16),
        blurRadius: 22,
        offset: const Offset(0, 10),
      ),
      BoxShadow(
        color: (brightness == Brightness.dark
                ? const Color(0xFF0F172A)
                : const Color(0xFF1D4ED8))
            .withValues(alpha: brightness == Brightness.dark ? 0.16 : 0.08),
        blurRadius: 8,
        offset: const Offset(0, 2),
      ),
    ];