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) {
  return BlocProvider<NewAppCreateBloc>(
    create: (context) => NewAppCreateBloc()
      ..add(NewAppCreateEventInitialise('YOUR_APP_ID', member)),
    child: NewAppCreateWidget._(
      app: app,
      widgetWidth: widgetWidth,
      widgetHeight: widgetHeight,
    ),
  );
}