openDialog function

void openDialog(
  1. BuildContext context,
  2. AppModel app,
  3. bool create,
  4. DialogModel model,
  5. String title, {
  6. double? fraction = 1,
})

Implementation

void openDialog(
  BuildContext context,
  AppModel app,
  bool create,
  DialogModel model,
  String title, {
  double? fraction = 1,
}) {
  openFlexibleDialog(
    app,
    context,
    '${app.documentID}/_dialog',
    includeHeading: false,
    widthFraction: fraction,
    child: DialogCreateWidget.getIt(
      context,
      app,
      model,
      create,
      fullScreenWidth(context) * (fraction ?? 1),
      //fullScreenHeight(context) - 100,
    ),
  );
}