GTFDialog constructor

const GTFDialog({
  1. Key? key,
  2. Function? onCancelPressed,
  3. Function? onConfirmPressed,
  4. String? titleText,
  5. String? contentText,
  6. String? cancelText,
  7. String? confirmText,
  8. int? titleMaxLines = 2,
  9. int? contentMaxLines = 3,
  10. double buttonHeight = 48,
  11. double? titleFontSize = GTFFont.title,
  12. double? contentFontSize = GTFFont.base,
  13. double? cancelFontSize = GTFFont.title,
  14. double? confirmFontSize = GTFFont.title,
  15. double? dividerHeight = 0.5,
  16. double? verticalDividerWidth = 0.5,
  17. FontWeight? titleFontWeight = GTFFont.medium,
  18. FontWeight? contentFontWeight = GTFFont.regular,
  19. FontWeight? cancelFontWeight = GTFFont.regular,
  20. FontWeight? confirmFontWeight = GTFFont.medium,
  21. Color? dividerColor = GTFColor.grey2,
  22. Color? titleTextColor = GTFColor.grey6,
  23. Color? contentTextColor = GTFColor.grey5,
  24. Color? cancelTextColor = GTFColor.grey5,
  25. Color? confirmTextColor = GTFColor.grey6,
  26. Color? cancelBackgroundColor = GTFColor.white,
  27. Color? confirmBackgroundColor = GTFColor.white,
  28. Widget? iconWidget,
  29. Widget? titleWidget,
  30. Widget? contentWidget,
  31. Widget? subContentWidget,
  32. Widget? closeWidget,
  33. List<Widget>? actionsWidget,
})

Implementation

const GTFDialog({
  Key? key,
  this.onCancelPressed,
  this.onConfirmPressed,
  this.titleText,
  this.contentText,
  this.cancelText,
  this.confirmText,
  this.titleMaxLines = 2,
  this.contentMaxLines = 3,
  this.buttonHeight = 48,
  this.titleFontSize = GTFFont.title,
  this.contentFontSize = GTFFont.base,
  this.cancelFontSize = GTFFont.title,
  this.confirmFontSize = GTFFont.title,
  this.dividerHeight = 0.5,
  this.verticalDividerWidth = 0.5,
  this.titleFontWeight = GTFFont.medium,
  this.contentFontWeight = GTFFont.regular,
  this.cancelFontWeight = GTFFont.regular,
  this.confirmFontWeight = GTFFont.medium,
  this.dividerColor = GTFColor.grey2,
  this.titleTextColor = GTFColor.grey6,
  this.contentTextColor = GTFColor.grey5,
  this.cancelTextColor = GTFColor.grey5,
  this.confirmTextColor = GTFColor.grey6,
  this.cancelBackgroundColor = GTFColor.white,
  this.confirmBackgroundColor = GTFColor.white,
  this.iconWidget,
  this.titleWidget,
  this.contentWidget,
  this.subContentWidget,
  this.closeWidget,
  this.actionsWidget,
}) : super(key: key);