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