Flash<T>.dialog constructor
Flash<T>.dialog ({
- Key? key,
- required FlashController controller,
- required Widget child,
- EdgeInsets margin = EdgeInsets.zero,
- BorderRadius? borderRadius,
- Color? borderColor,
- double borderWidth = 1.0,
- Brightness brightness = Brightness.light,
- Color backgroundColor = Colors.white,
- List<
BoxShadow> ? boxShadows, - Gradient? backgroundGradient,
- GestureTapCallback? onTap,
- bool enableDrag = false,
- HorizontalDismissDirection? horizontalDismissDirection,
- Duration insetAnimationDuration = const Duration(milliseconds: 100),
- Curve insetAnimationCurve = Curves.fastOutSlowIn,
- AlignmentGeometry? alignment = Alignment.center,
- Curve forwardAnimationCurve = Curves.fastOutSlowIn,
- Curve reverseAnimationCurve = Curves.fastOutSlowIn,
- double? barrierBlur,
- Color? barrierColor = Colors.black54,
- bool barrierDismissible = true,
Implementation
Flash.dialog({
Key? key,
required this.controller,
required this.child,
this.margin = EdgeInsets.zero,
this.borderRadius,
this.borderColor,
this.borderWidth = 1.0,
this.brightness = Brightness.light,
this.backgroundColor = Colors.white,
this.boxShadows,
this.backgroundGradient,
this.onTap,
this.enableDrag = false,
this.horizontalDismissDirection,
this.insetAnimationDuration = const Duration(milliseconds: 100),
this.insetAnimationCurve = Curves.fastOutSlowIn,
this.alignment = Alignment.center,
this.forwardAnimationCurve = Curves.fastOutSlowIn,
this.reverseAnimationCurve = Curves.fastOutSlowIn,
this.barrierBlur,
this.barrierColor = Colors.black54,
this.barrierDismissible = true,
}) : style = null,
position = null,
assert(alignment != null),
super(key: key);