openFlexibleDialog function
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,
);