openFlexibleDialog function

Future<void> openFlexibleDialog(
  1. AppModel app,
  2. BuildContext context,
  3. String name, {
  4. String? title,
  5. required Widget child,
  6. List<Widget>? buttons,
  7. double? widthFraction,
  8. bool? includeHeading = true,
})

Implementation

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