DDSModalDialog constructor
const
DDSModalDialog({
- Key? key,
- ModalDialogueVariant? variant = ModalDialogueVariant.basic,
- Widget? title = const Text('Action Buttons Example'),
- double? titleTopPadding,
- Widget? content = const Text('This dialog has custom action buttons and padding.'),
- String? cancelButtonText = 'Cancel',
- String? actionButtonText = 'No Thanks',
- bool showCurrentStepsDot = false,
- Widget? cancelButton,
- Widget? actionButton,
- Color? backgroundColor,
- double? elevation,
- required int totalSteps,
- List<
String> ? stepContents, - List<
Widget> ? actions, - IconData? headerIcon,
- Color? headerIconColor = ThemeColors.primary,
- Color showCurrentStepsDotActiveColor = ThemeColors.primary,
- Color showCurrentStepsDotInactiveColor = const Color(0xFFD9D9D9),
- double? headerIconSize = 40.0,
- VoidCallback? onComplete,
- VoidCallback? onCancel,
- VoidCallback? onActionClick,
- double? width,
- double? height,
- bool? showIcon,
- bool displayActionButton = true,
- bool displayCancelButton = true,
- Axis buttonDirection = Axis.horizontal,
- double? iconOffsetVertical = 10,
- double? iconOffsetHorizontal = 0,
- Widget? backButton,
- Widget? finishButton,
- String? backButtonText = 'Back',
- String? finishButtonText = 'Finish',
- double? contentButtonSpacing = 20.0,
- Widget? headerImage,
- double? headerImageHeight = 80.0,
- EdgeInsets? headerImagePadding = const EdgeInsets.only(top: 16.0, bottom: 8.0),
- double? singleButtonWidth,
- ButtonType? backButtonType,
- ButtonSize? backButtonSize,
- ButtonShape? backButtonShape,
- double? backButtonWidth,
- double? backButtonMinWidth,
- double? backButtonHeight,
- Color? backButtonPrimaryBackgroundColor,
- Color? backButtonPrimaryTextColor,
- Color? backButtonSecondaryBackgroundColor,
- Color? backButtonSecondaryTextColor,
- Color? backButtonSecondaryBorderColor,
- Color? backButtonTertiaryTextColor,
- TextStyle? backButtonLabelStyle,
- Color? backButtonPrimaryPressedColor,
- Color? backButtonSecondaryPressedColor,
- Color? backButtonTertiaryPressedColor,
- Color? backButtonLabelPressedColor,
- Color? backButtonStartIconPressedColor,
- Color? backButtonEndIconPressedColor,
Implementation
const DDSModalDialog({
Key? key,
this.variant = ModalDialogueVariant.basic,
this.title = const Text('Action Buttons Example'),
this.titleTopPadding,
this.content =
const Text('This dialog has custom action buttons and padding.'),
this.cancelButtonText = 'Cancel',
this.actionButtonText = 'No Thanks',
this.showCurrentStepsDot = false,
this.cancelButton,
this.actionButton,
this.backgroundColor,
this.elevation,
required this.totalSteps,
this.stepContents,
this.actions,
this.headerIcon,
this.headerIconColor = ThemeColors.primary,
this.showCurrentStepsDotActiveColor = ThemeColors.primary,
this.showCurrentStepsDotInactiveColor = const Color(0xFFD9D9D9),
this.headerIconSize = 40.0,
this.onComplete,
this.onCancel,
this.onActionClick,
this.width,
this.height,
this.showIcon,
this.displayActionButton = true,
this.displayCancelButton = true,
this.buttonDirection = Axis.horizontal,
this.iconOffsetVertical = 10,
this.iconOffsetHorizontal = 0,
this.backButton,
this.finishButton,
this.backButtonText = 'Back',
this.finishButtonText = 'Finish',
this.contentButtonSpacing = 20.0,
this.headerImage,
this.headerImageHeight = 80.0,
this.headerImagePadding = const EdgeInsets.only(top: 16.0, bottom: 8.0),
this.singleButtonWidth,
this.backButtonType,
this.backButtonSize,
this.backButtonShape,
this.backButtonWidth,
this.backButtonMinWidth,
this.backButtonHeight,
this.backButtonPrimaryBackgroundColor,
this.backButtonPrimaryTextColor,
this.backButtonSecondaryBackgroundColor,
this.backButtonSecondaryTextColor,
this.backButtonSecondaryBorderColor,
this.backButtonTertiaryTextColor,
this.backButtonLabelStyle,
this.backButtonPrimaryPressedColor,
this.backButtonSecondaryPressedColor,
this.backButtonTertiaryPressedColor,
this.backButtonLabelPressedColor,
this.backButtonStartIconPressedColor,
this.backButtonEndIconPressedColor,
}) : super(key: key);