animationPage static method

  1. @Deprecated('已废弃,请使用pushWithAnimation')
Future animationPage(
  1. String routeName,
  2. PageType pageType,
  3. AnimatedPageBuilder animatedBuilder, {
  4. Map? params,
  5. Duration? transitionDuration,
  6. bool opaque = true,
  7. bool barrierDismissible = false,
  8. Color? barrierColor,
  9. String? barrierLabel,
  10. bool maintainState = true,
  11. bool fullscreenDialog = false,
  12. bool replace = false,
})

自定义转场动画进入页面 flutter页面通过animatedBuilder自定义动画 native页面会转发到native,由native自行接入实现 replace:true flutter的pushReplacement实现 replace:false flutter的push实现

Implementation

@Deprecated('已废弃,请使用pushWithAnimation')
static Future animationPage(
  String routeName,
  PageType pageType,
  AnimatedPageBuilder animatedBuilder, {
  Map? params,
  Duration? transitionDuration,
  bool opaque = true,
  bool barrierDismissible = false,
  Color? barrierColor,
  String? barrierLabel,
  bool maintainState = true,
  bool fullscreenDialog = false,
  bool replace = false,
}) {
  return DNavigatorManager.animationPage(
      routeName,
      pageType,
      animatedBuilder,
      params,
      transitionDuration,
      opaque,
      barrierDismissible,
      barrierColor,
      barrierLabel,
      maintainState,
      fullscreenDialog,
      replace);
}