yourWidget method
Implementation
@override
Widget yourWidget(BuildContext context, FollowRequestsDashboardModel? value) {
return BlocBuilder<AccessBloc, AccessState>(
builder: (context, accessState) {
if (accessState is AccessDetermined) {
var appId = app.documentID;
return topicContainer(app, context, children: [
BlocProvider<FollowRequestListBloc>(
create: (context) => FollowRequestListBloc(
detailed: true,
eliudQuery: FollowPackage.getOpenFollowRequestsQuery(
appId, accessState.getMember()!.documentID),
followRequestRepository:
followRequestRepository(appId: appId)!,
)..add(LoadFollowRequestList()),
child: simpleTopicContainer(
app,
context,
children: ([
FollowRequestListWidget(
app: app,
readOnly: true,
widgetProvider: (v) => widgetProvider(app, v!, value!),
listBackground: BackgroundModel())
]),
))
]);
} else {
return progressIndicator(app, context);
}
});
}