menuShadows function
An iOS 27 menu's or alert's, measured over white below, above and beside it: one wide shadow, glass or not.
Implementation
List<BoxShadow> menuShadows(ColorScheme colorScheme, [double depth = 1]) {
final strength = colorScheme.brightness == Brightness.dark ? 1.5 : 1.0;
return [
BoxShadow(
color: colorScheme.shadow.withValues(alpha: 0.118 * strength * depth),
blurRadius: 29,
offset: const Offset(0, 8),
),
];
}