Properties
| Property | Type | Description |
|---|---|---|
| color | String? | Shadow color. |
| blurRadius | double? | Blur radius in logical pixels. |
| offset | Map<String, dynamic>? | Shadow offset with x and y values. |
| spreadRadius | double? | Spread radius (positive expands, negative contracts). |
| blurStyle | String? | Blur style: normal, solid, outer, inner. |
Example
Shadow with Opacity
For semi-transparent shadows, use color with alpha:Multiple Shadows
Combine multiple shadows for depth effects:Colored Shadows
Elevation Levels
Common elevation patterns based on Material Design:| Level | Blur Radius | Offset Y | Spread | Use Case |
|---|---|---|---|---|
| 1 | 2.0 | 1.0 | 0.0 | Cards |
| 2 | 4.0 | 2.0 | 0.0 | Buttons |
| 3 | 8.0 | 4.0 | 0.0 | FAB |
| 4 | 12.0 | 6.0 | 0.0 | Navigation drawer |
| 5 | 16.0 | 8.0 | 0.0 | Modal bottom sheet |