ShadDialogTheme class

Annotations

Constructors

ShadDialogTheme({bool canMerge = true, IconData? closeIconData, ShadPosition? closeIconPosition, BorderRadius? radius, Color? backgroundColor, bool? expandActionsWhenTiny, EdgeInsetsGeometry? padding, double? gap, List<Effect>? animateIn, List<Effect>? animateOut, 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})
const

Properties

actionsAxis Axis?
The axis along which actions are arranged (horizontal or vertical). Responsive to screen size if not specified.
final
actionsGap double?
The gap between action buttons. Defaults to 8 if not specified.
final
actionsMainAxisAlignment MainAxisAlignment?
The main axis alignment of the actions. Defaults to MainAxisAlignment.end if not specified.
final
actionsMainAxisSize MainAxisSize?
The main axis size of the actions layout. Defaults to MainAxisSize.max if not specified.
final
actionsPinned bool?
Whether the actions are pinned when scrolling and scrollable is true.
final
actionsVerticalDirection VerticalDirection?
The vertical direction of the actions layout when vertical. Responsive to screen size if not specified.
final
alignment Alignment?
The alignment of the dialog within its parent container. Defaults to Alignment.center if not specified.
final
animateIn List<Effect>?
final
animateOut List<Effect>?
final
backgroundColor Color?
The background color of the dialog. Defaults to the theme’s background color if not specified.
final
border BoxBorder?
The border surrounding the dialog. Defaults to a border with the theme’s border color if not specified.
final
canMerge bool
no setter
closeIconData IconData?
The icon data for the close button. Used if closeIcon is null; defaults to LucideIcons.x if not specified.
final
closeIconPosition ShadPosition?
The position of the close icon within the dialog. Defaults to top-end (8, 8) if not specified.
final
constraints BoxConstraints?
Constraints applied to the dialog’s layout. Defaults to a max width of 512 if not specified.
final
crossAxisAlignment CrossAxisAlignment?
The cross axis alignment of the dialog’s column content. Defaults to CrossAxisAlignment.start if not specified.
final
descriptionPinned bool?
Whether the description is pinned when scrolling and scrollable is true.
final
descriptionStyle TextStyle?
The text style for the description. Defaults to the theme’s muted text style if not specified.
final
descriptionTextAlign TextAlign?
The text alignment for the description. Responsive to screen size if not specified.
final
expandActionsWhenTiny bool?
Whether actions expand to full width on small screens. Defaults to true if not specified.
final
gap double?
The gap between content elements (title, description, child, actions). Defaults to 8 if not specified.
final
hashCode int
The hash code for this object.
no setterinherited
mainAxisAlignment MainAxisAlignment?
The main axis alignment of the dialog’s column content. Defaults to MainAxisAlignment.start if not specified.
final
padding EdgeInsetsGeometry?
The padding inside the dialog, surrounding all content. Defaults to EdgeInsets.all(24) if not specified.
final
radius BorderRadius?
The border radius of the dialog’s corners. Defaults to the theme’s radius if not specified.
final
removeBorderRadiusWhenTiny bool?
Whether to remove the border radius on small screens. Defaults to true if not specified.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollable bool?
Whether the dialog content is scrollable.
final
scrollPadding EdgeInsetsGeometry?
The padding applied when the dialog content is scrollable.
final
shadows List<BoxShadow>?
The list of box shadows applied to the dialog for elevation. Defaults to large shadows if not specified.
final
titlePinned bool?
Whether the title is pinned when scrolling and scrollable is true.
final
titleStyle TextStyle?
The text style for the title. Defaults to the theme’s large text style if not specified.
final
titleTextAlign TextAlign?
The text alignment for the title. Responsive to screen size if not specified.
final
useSafeArea bool?
Whether to wrap the dialog in a SafeArea widget to avoid system UI intrusions.
final

Methods

copyWith({IconData? closeIconData, ShadPosition? closeIconPosition, BorderRadius? radius, Color? backgroundColor, bool? expandActionsWhenTiny, EdgeInsetsGeometry? padding, double? gap, List<Effect>? animateIn, List<Effect>? animateOut, BoxConstraints? constraints, Axis? actionsAxis, MainAxisSize? actionsMainAxisSize, MainAxisAlignment? actionsMainAxisAlignment, VerticalDirection? actionsVerticalDirection, BoxBorder? border, List<BoxShadow>? shadows, bool? removeBorderRadiusWhenTiny, 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}) ShadDialogTheme
inherited
merge(ShadDialogTheme? other) ShadDialogTheme
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

lerp(ShadDialogTheme? a, ShadDialogTheme? b, double t) ShadDialogTheme?