buildTransition method
Wrap child (the output of buildPresenter) in a transition
driven by animation (0→1 on push, 1→0 on pop).
Override to customise. The default is a platform slide.
Implementation
@override
Widget buildTransition(
BuildContext context,
Animation<double> animation,
Widget child,
) => GalleryTransition(
animation: animation,
snapshot: initialSnapshot,
sourceRect: initialSourceRect,
sourceRadius: initialSourceRadius,
closeSourceLookup: _closeSourceForFocus,
onStage: _stage,
onDetach: _releaseHideSlot,
child: child,
);