ResponsiveDialog constructor
ResponsiveDialog({
- required BuildContext context,
- String? title,
- Widget? child,
- Color? headerColor,
- Color? backgroundColor,
- bool forcePortrait = false,
- double? maxLongSide,
- double? maxShortSide,
- bool? hideButtons = false,
- VoidCallback? okPressed,
- VoidCallback? cancelPressed,
- String? confirmText,
- String? cancelText,
- TextStyle? headerTextStyle,
- TextStyle? confirmTextStyle,
- TextStyle? cancelTextStyle,
- 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;