ResponsiveDialog constructor

ResponsiveDialog({
  1. required BuildContext context,
  2. String? title,
  3. Widget? child,
  4. Color? headerColor,
  5. Color? headerTextColor,
  6. Color? backgroundColor,
  7. Color? buttonTextColor,
  8. bool forcePortrait = false,
  9. double? maxLongSide,
  10. double? maxShortSide,
  11. bool hideButtons = false,
  12. VoidCallback? okPressed,
  13. VoidCallback? cancelPressed,
  14. String? confirmText,
  15. String? cancelText,
  16. bool cancelButtonVisible = true,
})

Implementation

ResponsiveDialog({
  required this.context,
  String? title,
  Widget? child,
  this.headerColor,
  this.headerTextColor,
  this.backgroundColor,
  this.buttonTextColor,
  this.forcePortrait = false,
  double? maxLongSide,
  double? maxShortSide,
  this.hideButtons = false,
  this.okPressed,
  this.cancelPressed,
  this.confirmText,
  this.cancelText,
  this.cancelButtonVisible = true,
})  : title = title ?? "Title Here",
      child = child ?? Text("Content Here"),
      maxLongSide = maxLongSide ?? 600,
      maxShortSide = maxShortSide ?? 400;