newFromJson function
void
newFromJson(
- BuildContext context,
- MemberModel member,
- AppModel app, {
- 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,
)),
);
}