buildDialogRoute method

  1. @override
DialogRoute buildDialogRoute(
  1. Widget child,
  2. Duration duration,
  3. Curve curve,
  4. BuildContext context,
)
override

Implementation

@override
DialogRoute buildDialogRoute(
    Widget child, Duration duration, Curve curve, BuildContext context) {
  return DialogRoute(
    context: context,
    builder: (_) =>
        _buildScaleTransition(const AlwaysStoppedAnimation(1), child, curve),
    // For dialog transitions, we use the scale transition with a fixed animation value (1.0).
    // Replace AlwaysStoppedAnimation(1) with an appropriate animation if needed.
  );
}