openDrawer function

void openDrawer(
  1. BuildContext context,
  2. AppModel app,
  3. DrawerModel model,
  4. DecorationDrawerType decorationDrawerType,
  5. 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,
    ),
  );
}