mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-25 05:07:05 +00:00
Material elevation is lit from above the screen, so at the bottom edge it fell heavily under the hairline-bordered card and read as a smudge, and the composer strip (a clipping Surface) cut the blur into a hard top edge. Draw an even iOS-style shadow instead (black 8%, 8dp blur, 2dp down; 6% and 6dp for suggestion popups) via a paint shadow layer, and make the strip an unclipped Box so the blur fades out naturally. Dark mode keeps relying on the lighter fill. The helper is a CacheDrawScope function, not a Modifier factory: Compose lint's ModifierDeclarationDetector crashes on app-module factories with this AGP.