GTFDialog constructor
const
GTFDialog({
- Key? key,
- Function? onCancelPressed,
- Function? onConfirmPressed,
- String? titleText,
- String? contentText,
- String? cancelText,
- String? confirmText,
- int? titleMaxLines = 2,
- int? contentMaxLines = 3,
- double buttonHeight = 48,
- double? titleFontSize = GTFFont.title,
- double? contentFontSize = GTFFont.base,
- double? cancelFontSize = GTFFont.title,
- double? confirmFontSize = GTFFont.title,
- double? dividerHeight = 0.5,
- double? verticalDividerWidth = 0.5,
- FontWeight? titleFontWeight = GTFFont.medium,
- FontWeight? contentFontWeight = GTFFont.regular,
- FontWeight? cancelFontWeight = GTFFont.regular,
- FontWeight? confirmFontWeight = GTFFont.medium,
- Color? dividerColor = GTFColor.grey2,
- Color? titleTextColor = GTFColor.grey6,
- Color? contentTextColor = GTFColor.grey5,
- Color? cancelTextColor = GTFColor.grey5,
- Color? confirmTextColor = GTFColor.grey6,
- Color? cancelBackgroundColor = GTFColor.white,
- Color? confirmBackgroundColor = GTFColor.white,
- Widget? iconWidget,
- Widget? titleWidget,
- Widget? contentWidget,
- Widget? subContentWidget,
- Widget? closeWidget,
- 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);