getIt static method
Widget
getIt(
- BuildContext context,
- AppModel app,
- HomeMenuModel homeMenuModel,
- double widgetWidth,
- 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,
),
);
}