createSelectWidget method

  1. @override
Widget createSelectWidget(
  1. BuildContext context,
  2. AppModel app,
  3. int privilegeLevel,
  4. double height,
  5. SelectComponent selected,
  6. dynamic editor,
)
override

Implementation

@override
Widget createSelectWidget(BuildContext context, AppModel app,
    int privilegeLevel, double height, SelectComponent selected, editor) {
  var appId = app.documentID;
  return BlocProvider<FaderListBloc>(
    create: (context) => FaderListBloc(
      eliudQuery: getComponentSelectorQuery(0, app.documentID),
      faderRepository: faderRepository(appId: appId)!,
    )..add(LoadFaderList()),
    child: _SelectFaderWidget(
        app: app,
        height: height,
        containerPrivilege: privilegeLevel,
        selected: selected,
        editorConstructor: editor),
  );
}