DDSModalDialog constructor

const DDSModalDialog({
  1. Key? key,
  2. ModalDialogueVariant? variant = ModalDialogueVariant.basic,
  3. Widget? title = const Text('Action Buttons Example'),
  4. double? titleTopPadding,
  5. Widget? content = const Text('This dialog has custom action buttons and padding.'),
  6. String? cancelButtonText = 'Cancel',
  7. String? actionButtonText = 'No Thanks',
  8. bool showCurrentStepsDot = false,
  9. Widget? cancelButton,
  10. Widget? actionButton,
  11. Color? backgroundColor,
  12. double? elevation,
  13. required int totalSteps,
  14. List<String>? stepContents,
  15. List<Widget>? actions,
  16. IconData? headerIcon,
  17. Color? headerIconColor = ThemeColors.primary,
  18. Color showCurrentStepsDotActiveColor = ThemeColors.primary,
  19. Color showCurrentStepsDotInactiveColor = const Color(0xFFD9D9D9),
  20. double? headerIconSize = 40.0,
  21. VoidCallback? onComplete,
  22. VoidCallback? onCancel,
  23. VoidCallback? onActionClick,
  24. double? width,
  25. double? height,
  26. bool? showIcon,
  27. bool displayActionButton = true,
  28. bool displayCancelButton = true,
  29. Axis buttonDirection = Axis.horizontal,
  30. double? iconOffsetVertical = 10,
  31. double? iconOffsetHorizontal = 0,
  32. Widget? backButton,
  33. Widget? finishButton,
  34. String? backButtonText = 'Back',
  35. String? finishButtonText = 'Finish',
  36. double? contentButtonSpacing = 20.0,
  37. Widget? headerImage,
  38. double? headerImageHeight = 80.0,
  39. EdgeInsets? headerImagePadding = const EdgeInsets.only(top: 16.0, bottom: 8.0),
  40. double? singleButtonWidth,
  41. ButtonType? backButtonType,
  42. ButtonSize? backButtonSize,
  43. ButtonShape? backButtonShape,
  44. double? backButtonWidth,
  45. double? backButtonMinWidth,
  46. double? backButtonHeight,
  47. Color? backButtonPrimaryBackgroundColor,
  48. Color? backButtonPrimaryTextColor,
  49. Color? backButtonSecondaryBackgroundColor,
  50. Color? backButtonSecondaryTextColor,
  51. Color? backButtonSecondaryBorderColor,
  52. Color? backButtonTertiaryTextColor,
  53. TextStyle? backButtonLabelStyle,
  54. Color? backButtonPrimaryPressedColor,
  55. Color? backButtonSecondaryPressedColor,
  56. Color? backButtonTertiaryPressedColor,
  57. Color? backButtonLabelPressedColor,
  58. Color? backButtonStartIconPressedColor,
  59. 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);