openWorkflow function
void
openWorkflow(
- BuildContext context,
- AppModel app,
- bool create,
- WorkflowModel model,
- String title, {
- VoidCallback? callOnAction,
- double? fraction,
Implementation
void openWorkflow(BuildContext context, AppModel app, bool create,
WorkflowModel model, String title,
{VoidCallback? callOnAction, double? fraction}) {
openFlexibleDialog(
app,
context,
'${app.documentID}/_workflow',
includeHeading: false,
widthFraction: fraction,
child: WorkflowCreateWidget.getIt(
context,
app,
callOnAction,
model,
create,
fullScreenWidth(context) * (fraction ?? 1),
//fullScreenHeight(context) - 100,
),
);
}