openComplexDialog function
Future<void>
openComplexDialog(
- AppModel app,
- BuildContext context,
- String name, {
- required String title,
- required Widget child,
- VoidCallback? onPressed,
- String? buttonLabel,
- double? widthFraction,
- bool? includeHeading = true,
Implementation
Future<void> openComplexDialog(
AppModel app,
BuildContext context,
String name, {
required String title,
required Widget child,
VoidCallback? onPressed,
String? buttonLabel,
double? widthFraction, // percentage of screen width
bool? includeHeading = true,
}) async =>
await StyleRegistry.registry()
.styleWithApp(app)
.frontEndStyle()
.dialogStyle()
.openComplexDialog(
app,
context, name, title: title,
child: child, onPressed: onPressed,
buttonLabel: buttonLabel,
widthFraction: widthFraction, // percentage of screen width
includeHeading: includeHeading,
);