getIt static method

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

Implementation

static Widget getIt(BuildContext context, AppModel app,
    HomeMenuModel homeMenuModel, double widgetWidth, double widgetHeight) {
  return BlocProvider<BottomNavBarCreateBloc>(
    create: (context) => BottomNavBarCreateBloc(app.documentID, homeMenuModel)
      ..add(BottomNavBarCreateEventValidateEvent(homeMenuModel)),
    child: BottomNavBarCreateWidget._(
      app: app,
      widgetWidth: widgetWidth,
      widgetHeight: widgetHeight,
    ),
  );
}