openAppBar function

void openAppBar(
  1. BuildContext context,
  2. AppModel app,
  3. AppBarModel model, {
  4. double? fraction,
})

Implementation

void openAppBar(
  BuildContext context,
  AppModel app,
  AppBarModel model, {
  double? fraction,
}) {
  openFlexibleDialog(
    app,
    context,
    '${app.documentID}/_appbar',
    includeHeading: false,
    widthFraction: fraction,
    child: AppBarCreateWidget.getIt(
      context,
      app,
      model,
      fullScreenWidth(context) * ((fraction == null) ? 1 : fraction),
      fullScreenHeight(context) - 100,
    ),
  );
}