buildDialogRoute method
DialogRoute
buildDialogRoute(
- Widget child,
- Duration duration,
- Curve curve,
- 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.
);
}