ShadDialog.raw constructor
const
ShadDialog.raw({
- Key? key,
- required ShadDialogVariant variant,
- Widget? title,
- Widget? description,
- Widget? child,
- List<
Widget> actions = const [], - Widget? closeIcon,
- IconData? closeIconData,
- ShadPosition? closeIconPosition,
- BorderRadius? radius,
- Color? backgroundColor,
- bool? expandActionsWhenTiny,
- EdgeInsetsGeometry? padding,
- double? gap,
- BoxConstraints? constraints,
- BoxBorder? border,
- List<
BoxShadow> ? shadows, - bool? removeBorderRadiusWhenTiny,
- Axis? actionsAxis,
- MainAxisSize? actionsMainAxisSize,
- MainAxisAlignment? actionsMainAxisAlignment,
- VerticalDirection? actionsVerticalDirection,
- TextStyle? titleStyle,
- TextStyle? descriptionStyle,
- TextAlign? titleTextAlign,
- TextAlign? descriptionTextAlign,
- Alignment? alignment,
- MainAxisAlignment? mainAxisAlignment,
- CrossAxisAlignment? crossAxisAlignment,
- bool? scrollable,
- EdgeInsetsGeometry? scrollPadding,
- double? actionsGap,
- bool? useSafeArea,
- bool? titlePinned,
- bool? descriptionPinned,
- 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,
});