buildTransition method

  1. @override
Widget buildTransition(
  1. BuildContext context,
  2. Animation<double> animation,
  3. Widget child
)
override

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,
);