yourWidget method

  1. @override
Widget yourWidget(
  1. BuildContext context,
  2. MembershipDashboardModel? value
)
override

Implementation

@override
Widget yourWidget(BuildContext context, MembershipDashboardModel? value) {
  return BlocBuilder<AccessBloc, AccessState>(
      builder: (context, accessState) {
    if (accessState is AccessDetermined) {
      var appId = app.documentID;
      return topicContainer(app, context, children: [
        BlocProvider<MemberPublicInfoListBloc>(
          create: (context) => MemberPublicInfoListBloc(
            eliudQuery: getSubscribedMembers(appId),
            memberPublicInfoRepository:
                memberPublicInfoRepository(appId: appId)!,
          )..add(LoadMemberPublicInfoList()),
          child: simpleTopicContainer(app, context, children: [
            MemberPublicInfoListWidget(
                app: app,
                readOnly: true,
                widgetProvider: (v) => widgetProvider(app, v, value!),
                listBackground: BackgroundModel())
          ]),
        )
      ]);
    } else {
      return progressIndicator(app, context);
    }
  });
}