onlyAnimateRemount property

bool onlyAnimateRemount
final

When this is set to true, LocalHeroes in this scope will only animate when the widget is remounted on the widget tree.

This means other position changes like scrolling are not animated.

Instead it only happens when the LocalHero e.g. changes its index in a parent Row widget or gets reparented.

Defaults to true.

Note: To reliably remount a widget it needs to have a unique Key in its key property.

Implementation

final bool onlyAnimateRemount;