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<FollowingListBloc>(
    create: (context) => FollowingListBloc(
      eliudQuery: getComponentSelectorQuery(0, app.documentID),
      followingRepository: followingRepository(appId: appId)!,
    )..add(LoadFollowingList()),
    child: _SelectFollowingWidget(
        app: app,
        height: height,
        containerPrivilege: privilegeLevel,
        selected: selected,
        editorConstructor: editor),
  );
}