openPage function
void
openPage(
- BuildContext context,
- AppModel app,
- bool create,
- PageModel model,
- String title, {
- 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,
),
);
}