JJDialogController constructor

JJDialogController({
  1. JJDialogPosition position = JJDialogPosition.bottom,
  2. Color barrierColor = Colors.black54,
  3. Color? backgroundColor = Colors.transparent,
  4. ShapeBorder? shape,
  5. double? elevation,
  6. Duration insetAnimationDuration = const Duration(milliseconds: 100),
  7. Curve insetAnimationCurve = Curves.decelerate,
  8. EdgeInsets insetPadding = const EdgeInsets.symmetric(horizontal: 0.0, vertical: 0.0),
  9. Clip clipBehavior = Clip.none,
  10. AlignmentGeometry? alignment,
  11. Widget? child,
  12. JJDialogContainer? dialogContainer,
  13. Offset? anchorPoint,
  14. bool useRootNavigator = false,
  15. bool barrierDismissible = true,
  16. String? barrierLabel,
  17. bool useSafeArea = true,
  18. bool isScrollControlled = false,
  19. bool isDismissible = true,
  20. bool enableDrag = true,
  21. AnimationController? transitionAnimationController,
})

Implementation

JJDialogController({
  this.position = JJDialogPosition.bottom,

  ///展示位置,默认底部
  this.barrierColor = Colors.black54,

  ///使用内层widget来做形状(也可以backgroundColor,shape外层设置)
  this.backgroundColor = Colors.transparent,
  this.shape,
  this.elevation,
  this.insetAnimationDuration = const Duration(milliseconds: 100),
  this.insetAnimationCurve = Curves.decelerate,
  this.insetPadding = const EdgeInsets.symmetric(horizontal: 0.0, vertical: 0.0),
  this.clipBehavior = Clip.none,
  this.alignment,
  this.child,
  this.dialogContainer,
  this.anchorPoint,
  this.useRootNavigator = false,

  //center: dialog特有
  this.barrierDismissible = true,
  this.barrierLabel,
  this.useSafeArea = true,

  ///bottom类型特有
  this.isScrollControlled = false,
  this.isDismissible = true,
  this.enableDrag = true,
  this.transitionAnimationController,
});