Match shadow to content

You can use the following code:

...

Tilt(
+ child: TiltProjectorContainer(
    child: ...
  ),
),

...

For more information, see: TiltProjectorContainer.

Performance risk exists

You should assess the performance risks yourself. If your scenario runs smoothly, then you can use it.

Apply a shadow to the entire child and childLayout, similar to a projector effect.
It will display a shadow that exactly matches the non-transparent parts of the widget.

Recommended for the following scenarios:

  • Images only
  • No data states
  • No Hero tags