allowSnapshotting property

bool allowSnapshotting
final

Whether zoom page transitions will prefer to animate a snapshot of the entering and exiting routes.

If not specified, defaults to true.

When this value is true, zoom page transitions will snapshot the entering and exiting routes. These snapshots are then animated in place of the underlying widgets to improve performance of the transition.

Generally this means that animations that occur on the entering/exiting route while the route animation plays may appear frozen - unless they are a hero animation or something that is drawn in a separate overlay.

This example shows a MaterialApp that disables snapshotting for the zoom transitions on Android.
link

To create a local project with this code sample, run:
flutter create --sample=material.ZoomPageTransitionsBuilder.allowSnapshotting.1 mysample

See also:

Implementation

final bool allowSnapshotting;