JJDialogController constructor
JJDialogController({
- JJDialogPosition position = JJDialogPosition.bottom,
- Color barrierColor = Colors.black54,
- Color? backgroundColor = Colors.transparent,
- ShapeBorder? shape,
- double? elevation,
- Duration insetAnimationDuration = const Duration(milliseconds: 100),
- Curve insetAnimationCurve = Curves.decelerate,
- EdgeInsets insetPadding = const EdgeInsets.symmetric(horizontal: 0.0, vertical: 0.0),
- Clip clipBehavior = Clip.none,
- AlignmentGeometry? alignment,
- Widget? child,
- JJDialogContainer? dialogContainer,
- Offset? anchorPoint,
- bool barrierDismissible = true,
- String? barrierLabel,
- bool useSafeArea = true,
- bool isScrollControlled = false,
- bool isDismissible = true,
- bool enableDrag = true,
- 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,
});