ResponsiveDialog constructor

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

Implementation

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