openWorkflow function

void openWorkflow(
  1. BuildContext context,
  2. AppModel app,
  3. bool create,
  4. WorkflowModel model,
  5. String title, {
  6. VoidCallback? callOnAction,
  7. 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,
    ),
  );
}