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