useVerticalTransition property

bool get useVerticalTransition

Returns true if the parent widget spans the entire width of the screen.

returns false if renderBox is null.

Implementation

bool get useVerticalTransition {
  // Return null if [renderBox] is null.
  if (renderBox == null) return false;

  final screenWidth = MediaQuery.of(transitionContext).size.width;
  return renderBoxSize!.width == screenWidth && renderBoxOffset!.dx == 0.0;
}