getIt static method
Widget
getIt(
- BuildContext context,
- AppModel app,
- bool withHeader,
- bool collapsed,
- bool partOfCreationOfApp, {
- FeedbackSelection? feedbackSelection,
Implementation
static Widget getIt(BuildContext context, AppModel app, bool withHeader,
bool collapsed, bool partOfCreationOfApp,
{FeedbackSelection? feedbackSelection}) {
return BlocProvider<StyleSelectionBloc>(
create: (context) => StyleSelectionBloc(app, feedbackSelection)
..add(InitialiseStyleSelectionEvent(
family: app.styleFamily, styleName: app.styleName)),
child: StyleSelectionWidget._(
app, withHeader, collapsed, partOfCreationOfApp),
);
}