ShadDialog constructor

const ShadDialog({
  1. Key? key,
  2. Widget? title,
  3. Widget? description,
  4. Widget? child,
  5. List<Widget> actions = const [],
  6. Widget? closeIcon,
  7. IconData? closeIconData,
  8. ShadPosition? closeIconPosition,
  9. BorderRadius? radius,
  10. Color? backgroundColor,
  11. bool? expandActionsWhenTiny,
  12. EdgeInsetsGeometry? padding,
  13. double? gap,
  14. BoxConstraints? constraints,
  15. BoxBorder? border,
  16. List<BoxShadow>? shadows,
  17. bool? removeBorderRadiusWhenTiny,
  18. Axis? actionsAxis,
  19. MainAxisSize? actionsMainAxisSize,
  20. MainAxisAlignment? actionsMainAxisAlignment,
  21. VerticalDirection? actionsVerticalDirection,
  22. TextStyle? titleStyle,
  23. TextStyle? descriptionStyle,
  24. TextAlign? titleTextAlign,
  25. TextAlign? descriptionTextAlign,
  26. Alignment? alignment,
  27. MainAxisAlignment? mainAxisAlignment,
  28. CrossAxisAlignment? crossAxisAlignment,
  29. bool? scrollable,
  30. EdgeInsetsGeometry? scrollPadding,
  31. double? actionsGap,
  32. bool? useSafeArea,
  33. bool? titlePinned,
  34. bool? descriptionPinned,
  35. bool? actionsPinned,
})

Creates a primary variant dialog widget.

Implementation

const ShadDialog({
  super.key,
  this.title,
  this.description,
  this.child,
  this.actions = const [],
  this.closeIcon,
  this.closeIconData,
  this.closeIconPosition,
  this.radius,
  this.backgroundColor,
  this.expandActionsWhenTiny,
  this.padding,
  this.gap,
  this.constraints,
  this.border,
  this.shadows,
  this.removeBorderRadiusWhenTiny,
  this.actionsAxis,
  this.actionsMainAxisSize,
  this.actionsMainAxisAlignment,
  this.actionsVerticalDirection,
  this.titleStyle,
  this.descriptionStyle,
  this.titleTextAlign,
  this.descriptionTextAlign,
  this.alignment,
  this.mainAxisAlignment,
  this.crossAxisAlignment,
  this.scrollable,
  this.scrollPadding,
  this.actionsGap,
  this.useSafeArea,
  this.titlePinned,
  this.descriptionPinned,
  this.actionsPinned,
}) : variant = ShadDialogVariant.primary;