newFromJson function

void newFromJson(
  1. BuildContext context,
  2. MemberModel member,
  3. AppModel app, {
  4. double? fraction,
})

Implementation

void newFromJson(
  BuildContext context,
  MemberModel member,
  AppModel app, {
  double? fraction,
}) {
  openFlexibleDialog(
    app,
    context,
    '${app.documentID}/_fromjson',
    includeHeading: false,
    widthFraction: fraction ?? .5,
    child: Container(
        width: 10,
        child: NewFromJsonCreateWidget.getIt(
          context,
          member,
          app,
          fullScreenWidth(context) * ((fraction == null) ? .5 : fraction),
          fullScreenHeight(context) - 100,
        )),
  );
}