ShadDialog.raw constructor

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

Creates a dialog widget with a specified variant, offering full customization.

Implementation

const ShadDialog.raw({
  super.key,
  required this.variant,
  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,
});