openComplexDialog function

Future<void> openComplexDialog(
  1. AppModel app,
  2. BuildContext context,
  3. String name, {
  4. required String title,
  5. required Widget child,
  6. VoidCallback? onPressed,
  7. String? buttonLabel,
  8. double? widthFraction,
  9. 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,
        );