openDrawer function
void
openDrawer(
- BuildContext context,
- AppModel app,
- DrawerModel model,
- DecorationDrawerType decorationDrawerType,
- double fraction,
Implementation
void openDrawer(BuildContext context, AppModel app, DrawerModel model,
DecorationDrawerType decorationDrawerType, double fraction) {
openFlexibleDialog(
app,
context,
'${app.documentID}/_drawer',
includeHeading: false,
widthFraction: fraction,
child: DrawerCreateWidget.getIt(
context,
app,
decorationDrawerType == DecorationDrawerType.left
? DrawerType.left
: DrawerType.right,
model,
fullScreenWidth(context) * fraction,
fullScreenHeight(context) - 100,
),
);
}