getIt static method

Widget getIt(
  1. BuildContext context,
  2. MemberModel member,
  3. AppModel app,
  4. double widgetWidth,
  5. double widgetHeight,
)

Implementation

static Widget getIt(BuildContext context, MemberModel member, AppModel app,
    double widgetWidth, double widgetHeight) {
  var accessBloc = BlocProvider.of<AccessBloc>(context);
  return BlocProvider<WizardBloc>(
    create: (context) => WizardBloc(
      app,
      accessBloc,
    )..add(WizardInitialise(member)),
    child: WizardWidget._(
      app: app,
      widgetWidth: widgetWidth,
      widgetHeight: widgetHeight,
    ),
  );
}