openPage function

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

Implementation

void openPage(BuildContext context, AppModel app, bool create, PageModel model,
    String title,
    {double? fraction}) {
  openFlexibleDialog(
    app,
    context,
    '${app.documentID}/_page',
    includeHeading: false,
    widthFraction: fraction,
    child: PageCreateWidget.getIt(
      context,
      app,
      model,
      create,
      fullScreenWidth(context) * (fraction ?? .9),
      //fullScreenHeight(context) - 100,
    ),
  );
}